summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-05-08 15:53:00 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-05-08 15:53:00 (GMT)
commit9cbb342f0c697bad082d8817513cd9771ade1b1f (patch)
treea8728ea7d5cb797ac71c0c14f8b6462d681df570 /plugins/pychrysalide
parent86ba53836168bcc591f532f2419fa290de601572 (diff)
Defined an improved generic macro for Python methods.
Diffstat (limited to 'plugins/pychrysalide')
-rw-r--r--plugins/pychrysalide/helpers.h6
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) \