diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-05-08 15:53:00 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-05-08 15:53:00 (GMT) |
commit | 9cbb342f0c697bad082d8817513cd9771ade1b1f (patch) | |
tree | a8728ea7d5cb797ac71c0c14f8b6462d681df570 /plugins/pychrysalide | |
parent | 86ba53836168bcc591f532f2419fa290de601572 (diff) |
Defined an improved generic macro for Python methods.
Diffstat (limited to 'plugins/pychrysalide')
-rw-r--r-- | plugins/pychrysalide/helpers.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/pychrysalide/helpers.h b/plugins/pychrysalide/helpers.h index ca393db..d30a307 100644 --- a/plugins/pychrysalide/helpers.h +++ b/plugins/pychrysalide/helpers.h @@ -83,11 +83,11 @@ bool register_python_module_object(PyObject *, PyTypeObject *); * Aide à la définition de documentation pour Python. */ -#define PYTHON_METHOD_DEF(name, args, flags, meth, doc) \ +#define PYTHON_METHOD_DEF(name, args, flags, base, doc) \ { \ - name, meth, \ + #name, base ## _ ## name, \ flags, \ - name "(" args ")\n--\n\n" doc \ + #name "(" args ")\n--\n\n" doc \ } #define PYTHON_GETSET_DEF(name, get, set, doc, closure) \ |