mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-14 18:00:54 +00:00
Fix some deprecated and internal Python C API usages
This commit is contained in:
1 parent
635e62d229
commit
d0a24b31cd
2 files changed
+24
-3
No files matched your search
@@ -470,9 +470,9 @@ extern "C" PyObject *RENDERDOC_DumpObject(PyObject *obj)
|
||||
void *resptr = NULL;
|
||||
|
||||
// for basic types, return the repr directly
|
||||
if(obj == (PyObject *)&_Py_TrueStruct ||
|
||||
obj == (PyObject *)&_Py_FalseStruct ||
|
||||
PyObject_IsInstance(obj, (PyObject*)&_PyNone_Type) ||
|
||||
if(obj == Py_True ||
|
||||
obj == Py_False ||
|
||||
obj == Py_None ||
|
||||
PyObject_IsInstance(obj, (PyObject*)&PyFloat_Type) ||
|
||||
PyObject_IsInstance(obj, (PyObject*)&PyLong_Type) ||
|
||||
PyObject_IsInstance(obj, (PyObject*)&PyBytes_Type) ||
|
||||
|
||||
Reference in new issue
Block a user