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

Method runMethodVoid

src/Base/Interpreter.cpp:741–754  ·  view source on GitHub ↗

* Runs a member method of an object with no parameter and no return value * void (void). There are other methods to run with returns */

Source from the content-addressed store, hash-verified

739 * void (void). There are other methods to run with returns
740 */
741void InterpreterSingleton::runMethodVoid(PyObject* pobject, const char* method)
742{
743 PyGILStateLocker locker;
744 if (PP_Run_Method(
745 pobject, // object
746 method, // run method
747 nullptr, // no return type
748 nullptr, // so no return object
749 "()"
750 ) // no arguments
751 != 0) {
752 throw PyException(/*"Error running InterpreterSingleton::RunMethodVoid()"*/);
753 }
754}
755
756PyObject* InterpreterSingleton::runMethodObject(PyObject* pobject, const char* method)
757{

Callers 1

activatedMethod · 0.80

Calls 2

PP_Run_MethodFunction · 0.85
PyExceptionFunction · 0.85

Tested by

no test coverage detected