MCPcopy Create free account
hub / github.com/JSBSim-Team/jsbsim / CallPythonMethodWithTuple

Method CallPythonMethodWithTuple

python/src/PyLogger.cxx:181–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
180
181PyObjectPtr PyLogger::CallPythonMethodWithTuple(const char* method_name, const PyObjectPtr& tuple)
182{
183 PyObjectPtr method = PyObject_GetAttrString(logger_pyclass.get(), method_name);
184 assert(method); // This should not fail as the constructor has checked the type of logger_pyclass.
185
186 return PyObject_CallObject(method.get(), tuple.get());
187}
188} // namespace JSBSim

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected