commit | 8de6c99b902b7b2f845639d576c88921d83afd23 | [log] [tgz] |
---|---|---|
author | Mark Liffiton <liffiton@gmail.com> | Sun Apr 29 09:10:02 2018 -0500 |
committer | Yang Deokgyu <secugyu@gmail.com> | Tue Aug 27 18:22:53 2019 +0900 |
tree | d4889019d8924c559c58602c84f62efdacef30ff | |
parent | a550376c6eea18652d160ce5e63ffe136237676c [diff] |
Fix PyFunc typemap.
diff --git a/wiringpi.i b/wiringpi.i index dbe196c..9de9a9f 100644 --- a/wiringpi.i +++ b/wiringpi.i
@@ -59,12 +59,12 @@ }; // Grab a Python function object as a Python object. -%typemap(in) PyObject *pyfunc { - if (!PyCallable_Check($1)) { +%typemap(in) PyObject *PyFunc { + if (!PyCallable_Check($input)) { PyErr_SetString(PyExc_TypeError, "Need a callable object!"); return NULL; } - $1 = $2; + $1 = $input; } %{