obs-scripting: Add Py 3.8+ C-API changes

Closes obsproject/obs-studio#3689
This commit is contained in:
PatTheMav
2021-01-27 11:33:34 -08:00
committed by jp9000
parent 44ace7618f
commit ecdc81ba0f
3 changed files with 68 additions and 1 deletions
+7
View File
@@ -143,6 +143,13 @@ bool import_python(const char *python_path)
IMPORT_FUNC(_Py_NoneStruct);
IMPORT_FUNC(PyTuple_New);
#if defined(Py_DEBUG) || PY_VERSION_HEX >= 0x030900b0
IMPORT_FUNC(_Py_Dealloc);
#endif
#if PY_VERSION_HEX >= 0x030900b0
IMPORT_FUNC(PyType_GetFlags);
#endif
#undef IMPORT_FUNC
success = true;