[Bf-blender-cvs] [42a9f33] master: Update stub for recent BPY API

Campbell Barton noreply at git.blender.org
Fri Apr 1 09:54:03 CEST 2016


Commit: 42a9f334c8f70b4785151864c1e8b833c0c134ee
Author: Campbell Barton
Date:   Fri Apr 1 18:56:48 2016 +1100
Branches: master
https://developer.blender.org/rB42a9f334c8f70b4785151864c1e8b833c0c134ee

Update stub for recent BPY API

===================================================================

M	source/blender/python/intern/stubs.c
M	source/blenderplayer/bad_level_call_stubs/stubs.c

===================================================================

diff --git a/source/blender/python/intern/stubs.c b/source/blender/python/intern/stubs.c
index e050835..cc186be 100644
--- a/source/blender/python/intern/stubs.c
+++ b/source/blender/python/intern/stubs.c
@@ -32,11 +32,16 @@
 
 #include "BPY_extern.h"
 
+#if defined(__GNUC__)
+#  pragma GCC diagnostic error "-Wmissing-prototypes"
+#  pragma GCC diagnostic ignored "-Wunused-parameter"
+#endif
+
 /* python, will come back */
 //void BPY_script_exec(void) {}
 //void BPY_python_start(void) {}
 //void BPY_text_free_code(void) {}
-void BPY_pyconstraint_exec(struct bPythonConstraint *UNUSED(con), struct bConstraintOb *UNUSED(cob), struct ListBase *UNUSED(targets)) {}
-void BPY_pyconstraint_target(struct bPythonConstraint *UNUSED(con), struct bConstraintTarget *UNUSED(ct)) {}
-int BPY_is_pyconstraint(struct Text *UNUSED(text)) { return 0;}
-void BPY_pyconstraint_update(struct Object *UNUSED(owner), struct bConstraint *UNUSED(con)) {}
+void BPY_pyconstraint_exec(struct bPythonConstraint *con, struct bConstraintOb *cob, struct ListBase *targets) {}
+void BPY_pyconstraint_target(struct bPythonConstraint *con, struct bConstraintTarget *ct) {}
+int BPY_is_pyconstraint(struct Text *text) { return 0;}
+void BPY_pyconstraint_update(struct Object *owner, struct bConstraint *con) {}
diff --git a/source/blenderplayer/bad_level_call_stubs/stubs.c b/source/blenderplayer/bad_level_call_stubs/stubs.c
index 13499d9..dfe7a03 100644
--- a/source/blenderplayer/bad_level_call_stubs/stubs.c
+++ b/source/blenderplayer/bad_level_call_stubs/stubs.c
@@ -195,6 +195,8 @@ extern bool pyrna_id_FromPyObject(struct PyObject *obj, struct ID **id);
 extern const char *BPY_app_translations_py_pgettext(const char *msgctxt, const char *msgid);
 extern const char *BPY_app_translations_py_pgettext(const char *msgctxt, const char *msgid);
 extern struct PyObject *pyrna_id_CreatePyObject(struct ID *id);
+/* bpy_interface.c */
+bool BPY_string_is_keyword(const char *str) { return false; }
 
 #endif
 /* end declarations */




More information about the Bf-blender-cvs mailing list