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

Method print_python_version_once

tests/test_with_catch/catch.cpp:89–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87
88private:
89 void print_python_version_once() {
90 if (printed_) {
91 return;
92 }
93 printed_ = true;
94 auto &os = Catch::cout();
95 os << "[ PYTHON ] " << Py_GetVersion() << '\n';
96 os.flush();
97 }
98
99 bool printed_ = false;
100};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected