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 a8c1090 commit 65e0b6fCopy full SHA for 65e0b6f
graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_misc.py
@@ -236,8 +236,15 @@ def compile_module(self, name):
236
(123.0, ),
237
),
238
code="""
239
+ #ifdef GRAALVM_PYTHON
240
// internal function defined in 'capi.c'
241
int PyTruffle_ToNative(void *);
242
+ #else
243
+ // nothing to do on CPython
244
+ static inline int PyTruffle_ToNative(void *arg) {
245
+ return 0;
246
+ }
247
+ #endif
248
249
PyObject* primitive_sharing(PyObject* val) {
250
Py_ssize_t val_refcnt = Py_REFCNT(val);
0 commit comments