diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-12-13 21:53:43 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-12-13 21:53:43 (GMT) |
commit | ccf90bf696a0852ef34ac2a86137b34e92827ec0 (patch) | |
tree | d43c65faf4316d8a55d67c74f363f3f4371068cd /plugins/pychrysalide/helpers.h | |
parent | 0c6e15aa59918b7d3a1e63258e3f6792266d62e0 (diff) |
Renamed the function registering C constant values into Python objects.
Diffstat (limited to 'plugins/pychrysalide/helpers.h')
-rw-r--r-- | plugins/pychrysalide/helpers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/pychrysalide/helpers.h b/plugins/pychrysalide/helpers.h index 9f02daa..c31c7ad 100644 --- a/plugins/pychrysalide/helpers.h +++ b/plugins/pychrysalide/helpers.h @@ -47,13 +47,13 @@ PyObject *_run_python_method(PyObject *, PyObject *); PyObject *run_python_method(PyObject *, const char *, PyObject *); /* Ajoute une constante au dictionnaire d'un type Python donné. */ -bool PyDict_AddIntConstant(PyTypeObject *, const char *, long); +bool PyDict_AddULongConstant(PyTypeObject *, const char *, unsigned long); /* Ajoute une constante au dictionnaire d'un type Python donné. */ bool PyDict_AddStringConstant(PyTypeObject *, const char *, const char *); -#define PyDict_AddIntMacro(tp, c) PyDict_AddIntConstant(tp, #c, c) +#define PyDict_AddULongMacro(tp, c) PyDict_AddULongConstant(tp, #c, c) #define PyDict_AddStringMacro(tp, c) PyDict_AddStringConstant(tp, #c, c) |