mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-28 02:31:33 +00:00
inline get_interpreter_state_uncheccked inline function (#5789)
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE)
|
PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE)
|
||||||
PYBIND11_NAMESPACE_BEGIN(detail)
|
PYBIND11_NAMESPACE_BEGIN(detail)
|
||||||
PyInterpreterState *get_interpreter_state_unchecked() {
|
inline PyInterpreterState *get_interpreter_state_unchecked() {
|
||||||
auto cur_tstate = get_thread_state_unchecked();
|
auto cur_tstate = get_thread_state_unchecked();
|
||||||
if (cur_tstate)
|
if (cur_tstate)
|
||||||
return cur_tstate->interp;
|
return cur_tstate->interp;
|
||||||
|
|||||||
Reference in New Issue
Block a user