Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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