We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34c71fa commit 7839924Copy full SHA for 7839924
graalpython/com.oracle.graal.python.cext/include/hpy/cpython/misc.h
@@ -29,8 +29,13 @@
29
If you need to convert HPy to PyObject* and vice-versa, you should use
30
HPy_AsPyObject and HPy_FromPyObject.
31
*/
32
+#ifdef GRAALVM_PYTHON_LLVM
33
#define _h2py(h) ((PyObject*)h._i)
34
#define _py2h(o) ((HPy){(void*)o})
35
+#else
36
+#define _h2py(h) ((PyObject*)h._i)
37
+#define _py2h(o) ((HPy){(intptr_t)o})
38
+#endif
39
40
// this should maybe autogenerated from public_api.h
41
struct _HPyContext_s {
0 commit comments