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