Skip to content

Commit a6ca186

Browse files
committed
Partially revert "assign true and false structs"
This reverts commit 117a8fc.
1 parent 32e90d3 commit a6ca186

File tree

1 file changed

+10
-0
lines changed
  • graalpython/com.oracle.graal.python.cext/include

1 file changed

+10
-0
lines changed

graalpython/com.oracle.graal.python.cext/include/Python.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,16 @@
100100
#include "import.h"
101101
#include "pycapsule.h"
102102

103+
// our impls
104+
#ifdef Py_True
105+
#undef Py_True
106+
#define Py_True truffle_invoke(PY_TRUFFLE_CEXT, "Py_True")
107+
#endif
108+
109+
#ifdef Py_False
110+
#undef Py_False
111+
#define Py_False truffle_invoke(PY_TRUFFLE_CEXT, "Py_False")
112+
#endif
103113

104114
#undef Py_NoValue
105115
#define Py_NoValue truffle_invoke(PY_TRUFFLE_CEXT, "Py_NoValue")

0 commit comments

Comments
 (0)