inline get_interpreter_state_uncheccked inline function (#5789)

This commit is contained in:
Justen Di Ruscio
2025-08-11 23:25:09 -03:00
committed by GitHub
parent 23c59b6e3d
commit 94c8250818

View File

@@ -21,7 +21,7 @@
PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE)
PYBIND11_NAMESPACE_BEGIN(detail)
PyInterpreterState *get_interpreter_state_unchecked() {
inline PyInterpreterState *get_interpreter_state_unchecked() {
auto cur_tstate = get_thread_state_unchecked();
if (cur_tstate)
return cur_tstate->interp;