* Runs a member method of an object with no parameter and no return value * void (void). There are other methods to run with returns */
| 739 | * void (void). There are other methods to run with returns |
| 740 | */ |
| 741 | void 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 | |
| 756 | PyObject* InterpreterSingleton::runMethodObject(PyObject* pobject, const char* method) |
| 757 | { |
no test coverage detected