replace macro PYC_INTERPRETER_ACTIVE for PyC_IsInterpreterActive() function call,

(indirectly referenced Python define of ~30 lines, most were optimized out but still caused some code bloat).
This commit is contained in:
2013-09-18 23:21:24 +00:00
parent 7335a4af04
commit 4dd7d4110a
6 changed files with 32 additions and 27 deletions

View File

@@ -166,7 +166,7 @@ void BPY_text_free_code(Text *text)
{
if (text->compiled) {
PyGILState_STATE gilstate;
bool use_gil = !PYC_INTERPRETER_ACTIVE;
bool use_gil = !PyC_IsInterpreterActive();
if (use_gil)
gilstate = PyGILState_Ensure();
@@ -760,7 +760,7 @@ void BPY_modules_load_user(bContext *C)
int BPY_context_member_get(bContext *C, const char *member, bContextDataResult *result)
{
PyGILState_STATE gilstate;
bool use_gil = !PYC_INTERPRETER_ACTIVE;
bool use_gil = !PyC_IsInterpreterActive();
PyObject *pyctx;
PyObject *item;