forked from bartvdbraak/blender
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:
parent
3caeea233d
commit
af2042d219
@ -55,11 +55,11 @@
|
||||
|
||||
/* more 2.4 macros..? */
|
||||
#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
|
||||
|
||||
#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
|
||||
|
||||
PyObject *EXPP_GetModuleConstant(char *module, char *constant);
|
||||
|
Loading…
Reference in New Issue
Block a user