| 7 | */ |
| 8 | |
| 9 | PYBIND11_MODULE(mod_shared_interpreter_gil, m, py::multiple_interpreters::shared_gil()) { |
| 10 | m.def("internals_at", |
| 11 | []() { return reinterpret_cast<uintptr_t>(&py::detail::get_internals()); }); |
| 12 | #ifdef PYBIND11_HAS_SUBINTERPRETER_SUPPORT |
| 13 | m.attr("defined_PYBIND11_HAS_SUBINTERPRETER_SUPPORT") = true; |
| 14 | #else |
| 15 | m.attr("defined_PYBIND11_HAS_SUBINTERPRETER_SUPPORT") = false; |
| 16 | #endif |
| 17 | } |