diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-02-26 08:50:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-02-26 08:50:19 +0300 |
commit | b49b02842a9f13975b5735183afdae273c9fd616 (patch) | |
tree | ce3f118808bc42204ab8fb883fc05548fcea6743 /source/blender/python/intern/bpy_operator.h | |
parent | 9ac7c8e91a9e699ff3490881c554e08fc348f442 (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.h | 3 |
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; |