Skip to content

Commit dabab90

Browse files
committed
interrogate: Fix compilation error of bindings with Python 3.9+
1 parent 54ffc53 commit dabab90

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dtool/src/interrogate/interfaceMakerPythonNative.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6545,7 +6545,9 @@ write_make_seq(ostream &out, Object *obj, const std::string &ClassName,
65456545
"\n";
65466546

65476547
if ((elem_getter->_args_type & AT_varargs) == AT_varargs) {
6548+
out << "#if defined(Py_TRACE_REFS) || PY_VERSION_HEX < 0x03090000\n";
65486549
out << " _Py_ForgetReference((PyObject *)&args);\n";
6550+
out << "#endif\n";
65496551
}
65506552

65516553
out <<

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy