MCPcopy Create free account
hub / github.com/pybind/pybind11 / precheck_interpreter

Function precheck_interpreter

include/pybind11/embed.h:97–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97inline void precheck_interpreter() {
98 if (Py_IsInitialized() != 0) {
99 pybind11_fail("The interpreter is already running");
100 }
101}
102
103#if !defined(PYBIND11_PYCONFIG_SUPPORT_PY_VERSION_HEX)
104# define PYBIND11_PYCONFIG_SUPPORT_PY_VERSION_HEX (0x03080000)

Callers 2

initialize_interpreterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected