new attempt at the pyboolean macro, 'cause that style did not work in one line if/elses - this one is from the py 2.4 boolops headers.
This commit is contained in:
@@ -55,11 +55,11 @@
|
|||||||
|
|
||||||
/* more 2.4 macros..? */
|
/* more 2.4 macros..? */
|
||||||
#ifndef Py_RETURN_TRUE
|
#ifndef Py_RETURN_TRUE
|
||||||
#define Py_RETURN_TRUE Py_INCREF( Py_True ); return Py_True
|
#define Py_RETURN_TRUE return Py_INCREF(Py_True), Py_True
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef Py_RETURN_FALSE
|
#ifndef Py_RETURN_FALSE
|
||||||
#define Py_RETURN_FALSE Py_INCREF( Py_False); return Py_False
|
#define Py_RETURN_FALSE return Py_INCREF(Py_False), Py_False
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
PyObject *EXPP_GetModuleConstant(char *module, char *constant);
|
PyObject *EXPP_GetModuleConstant(char *module, char *constant);
|
||||||
|
|||||||
Reference in New Issue
Block a user