Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34k
Description
This isn’t a “real issue” report, sincepycore_cell.h (and the helpers it declares) are internal implementation details, so I understand they’re not part of the stable/public API, not guaranteed to be C++-compatible, and may change or disappear in future CPython versions. I’m still asking about this because the fix is very small.
While adaptingCinderX to FT-Python, we includepycore_cell.h from a C++ (in the JIT/codegen path forLOAD_DEREF /STORE_DEREF). This currently fails to compile under C++ unless-fpermissive is used.
pycore_cell.h already hasextern "C" guards, so it looks intended to be usable from C++ in at least some capacity. Would it be acceptable to add an explicit cast so it compiles cleanly under C++?``