MCPcopy Create free account
hub / github.com/SimVascular/SimVascular / PyUtilApiFunction

Method PyUtilApiFunction

Code/Source/PythonAPI/PyUtils.cxx:44–51  ·  view source on GitHub ↗

------------------- PyUtilApiFunction -------------------

Source from the content-addressed store, hash-verified

42//-------------------
43//
44PyUtilApiFunction::PyUtilApiFunction(const std::string& format, PyObject* pyError, const char* function)
45{
46 std::string functionName = PyUtilGetFunctionName(function);
47 this->msgp = PyUtilGetMsgPrefix(functionName);
48 this->formatString = format + ":" + functionName;
49 this->format = this->formatString.c_str();
50 this->pyError = pyError;
51}
52
53//-------
54// error

Callers

nothing calls this directly

Calls 3

PyUtilGetFunctionNameFunction · 0.85
PyUtilGetMsgPrefixFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected