Zachary Ware <zachary.w...@gmail.com> added the comment:
I have poked at this a bit and have an implementation that defines a `static inline void _Py_Unreachable()` in pymacro.h, see https://github.com/zware/cpython/commit/d07b4255dc1170155e18db0fea99ec1cb29c2f0a This works on at least macOS and Windows, and we also have prior art for defining static inline functions in headers in GH-10079. If we agree that that's an acceptable solution, I'll open a PR for that change. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38205> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com