From 4dd7d4110a06422b5a86a609b7cc7687bd570fef Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 18 Sep 2013 23:21:24 +0000 Subject: 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). --- source/blender/python/intern/bpy_interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/python/intern/bpy_interface.c') diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c index dc1f5828c15..cc1dd369f8b 100644 --- a/source/blender/python/intern/bpy_interface.c +++ b/source/blender/python/intern/bpy_interface.c @@ -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; -- cgit v1.2.3