We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5202c98 commit 0808624Copy full SHA for 0808624
mypyc/lib-rt/pythoncapi_compat.h
@@ -34,6 +34,7 @@ extern "C" {
34
# define _Py_CAST(type, expr) ((type)(expr))
35
#endif
36
37
+#ifndef _Py_NULL
38
// Static inline functions should use _Py_NULL rather than using directly NULL
39
// to prevent C++ compiler warnings. On C23 and newer and on C++11 and newer,
40
// _Py_NULL is defined as nullptr.
@@ -43,6 +44,7 @@ extern "C" {
43
44
#else
45
# define _Py_NULL NULL
46
47
+#endif
48
49
// Cast argument to PyObject* type.
50
#ifndef _PyObject_CAST
0 commit comments