MCPcopy Create free account
hub / github.com/Cantera/cantera / checkPythonError

Function checkPythonError

src/extensions/pythonShim.cpp:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace {
28
29void checkPythonError(bool condition, const string& message) {
30 if (condition) {
31 if (PyErr_Occurred()) {
32 PyErr_PrintEx(0);
33 }
34 throw CanteraError("loadCanteraPython", message);
35 }
36}
37
38#ifdef _WIN32
39void setPythonHome()

Callers 1

loadCanteraPythonFunction · 0.85

Calls 1

CanteraErrorClass · 0.85

Tested by

no test coverage detected