From 94c8250818a07a3bafd2557bddc21935fe74c106 Mon Sep 17 00:00:00 2001 From: Justen Di Ruscio <10579359+justend29@users.noreply.github.com> Date: Mon, 11 Aug 2025 23:25:09 -0300 Subject: [PATCH] inline get_interpreter_state_uncheccked inline function (#5789) --- include/pybind11/subinterpreter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/subinterpreter.h b/include/pybind11/subinterpreter.h index 45396fac3..1bdcc26a3 100644 --- a/include/pybind11/subinterpreter.h +++ b/include/pybind11/subinterpreter.h @@ -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;