File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Source/UnrealEnginePython/Private Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ char *PyUnicode_AsUTF8(PyObject *py_str) {
2020 }
2121 return PyString_AsString (py_str);
2222}
23+
24+ int PyGILState_Check () {
25+ PyThreadState * tstate = _PyThreadState_Current;
26+ return tstate && (tstate == PyGILState_GetThisThreadState ());
27+ }
2328#endif
2429
2530bool PyUnicodeOrString_Check (PyObject *py_obj) {
Original file line number Diff line number Diff line change 5050
5151#if PY_MAJOR_VERSION < 3
5252char * PyUnicode_AsUTF8 (PyObject * py_str );
53- int PyGILState_Check () {
54- PyThreadState * tstate = _PyThreadState_Current ;
55- return tstate && (tstate == PyGILState_GetThisThreadState ());
56- }
53+ int PyGILState_Check ();
5754#endif
5855bool PyUnicodeOrString_Check (PyObject * py_obj );
You can’t perform that action at this time.
0 commit comments