MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / runMethodObject

Method runMethodObject

src/Base/Interpreter.cpp:756–773  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

754}
755
756PyObject* InterpreterSingleton::runMethodObject(PyObject* pobject, const char* method)
757{
758 PyObject* pcO {};
759
760 PyGILStateLocker locker;
761 if (PP_Run_Method(
762 pobject, // object
763 method, // run method
764 "O", // return type
765 &pcO, // return object
766 "()"
767 ) // no arguments
768 != 0) {
769 throw PyException();
770 }
771
772 return pcO;
773}
774
775void InterpreterSingleton::runMethod(
776 PyObject* pobject,

Callers 3

PythonCommandMethod · 0.80
getHelpUrlMethod · 0.80
PythonGroupCommandMethod · 0.80

Calls 2

PP_Run_MethodFunction · 0.85
PyExceptionFunction · 0.85

Tested by

no test coverage detected