Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Alatalo <antont@kyperjokki.fi>2005-11-22 14:25:23 +0300
committerToni Alatalo <antont@kyperjokki.fi>2005-11-22 14:25:23 +0300
commitaf2042d2197abdddd9749c49dee7e6d364d41cc9 (patch)
tree4596911efa73e26653312d4b34c54eea8d1dfad3 /source/blender/python/api2_2x/gen_utils.h
parent3caeea233d4bc4045aa905147ab1234794e63cec (diff)
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.
Diffstat (limited to 'source/blender/python/api2_2x/gen_utils.h')
-rw-r--r--source/blender/python/api2_2x/gen_utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/gen_utils.h b/source/blender/python/api2_2x/gen_utils.h
index 51eccc293d2..bf68d1a3c9b 100644
--- a/source/blender/python/api2_2x/gen_utils.h
+++ b/source/blender/python/api2_2x/gen_utils.h
@@ -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);