diff --git a/Include/cinder/hooks.h b/Include/cinder/hooks.h index eb66d94e3d7..7c085f2b84b 100644 --- a/Include/cinder/hooks.h +++ b/Include/cinder/hooks.h @@ -173,6 +173,8 @@ CiAPI_DATA(Ci_HookType_PyJIT_GetCurrentCodeFlags) CiAPI_DATA(int64_t) __strobe_RuntimeFrameState_py_code; CiAPI_DATA(int64_t) __strobe_CodeRuntime_py_code; +CiAPI_DATA(PyObject*) CiExc_StaticTypeError; + #ifdef __cplusplus } // extern "C" #endif diff --git a/Python/cinderhooks.c b/Python/cinderhooks.c index 064e4af2e88..d18ac98796b 100644 --- a/Python/cinderhooks.c +++ b/Python/cinderhooks.c @@ -55,6 +55,8 @@ Ci_HookType_PyJIT_GetBuiltins Ci_hook_PyJIT_GetBuiltins = NULL; Ci_HookType_PyJIT_GetGlobals Ci_hook_PyJIT_GetGlobals = NULL; Ci_HookType_PyJIT_GetCurrentCodeFlags Ci_hook_PyJIT_GetCurrentCodeFlags = NULL; +PyObject* CiExc_StaticTypeError = NULL; + // For backward compatibility, we need this in libpython rather than the // CinderX module. int _PyShadowFrame_WalkAndPopulate(