Skip to content

Commit 94c8250

Browse files
authored
inline get_interpreter_state_uncheccked inline function (#5789)
1 parent 23c59b6 commit 94c8250

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/subinterpreter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE)
2323
PYBIND11_NAMESPACE_BEGIN(detail)
24-
PyInterpreterState *get_interpreter_state_unchecked() {
24+
inline PyInterpreterState *get_interpreter_state_unchecked() {
2525
auto cur_tstate = get_thread_state_unchecked();
2626
if (cur_tstate)
2727
return cur_tstate->interp;

0 commit comments

Comments
 (0)