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:
authorCampbell Barton <ideasman42@gmail.com>2009-02-26 08:50:19 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-02-26 08:50:19 +0300
commitb49b02842a9f13975b5735183afdae273c9fd616 (patch)
treece3f118808bc42204ab8fb883fc05548fcea6743 /source/blender/python/intern/bpy_operator.h
parent9ac7c8e91a9e699ff3490881c554e08fc348f442 (diff)
update to build with python 3.0.1 which removed Py_InitModule3, added richcompare functions to the operator api.
Diffstat (limited to 'source/blender/python/intern/bpy_operator.h')
-rw-r--r--source/blender/python/intern/bpy_operator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_operator.h b/source/blender/python/intern/bpy_operator.h
index 5cc3ba64e0e..fa12857fe19 100644
--- a/source/blender/python/intern/bpy_operator.h
+++ b/source/blender/python/intern/bpy_operator.h
@@ -35,6 +35,9 @@
extern PyTypeObject pyop_base_Type;
extern PyTypeObject pyop_func_Type;
+#define BPy_OperatorFunc_Check(v) (PyObject_TypeCheck(v, &pyop_func_Type))
+#define BPy_PropertyRNA_Check(v) (PyObject_TypeCheck(v, &pyop_func_Type))
+
typedef struct {
PyObject_HEAD /* required python macro */
bContext *C;