This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static inline int HPy_IsTrue(HPyContext *ctx, HPy h) | |
{ | |
return PyObject_IsTrue(_h2py(h)); | |
} | |
// In CPython ABI mode, HPy handles == PyObject* | |
static inline PyObject* _h2py(HPy h) { | |
return (PyObject*) h._i; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment