| 754 | } |
| 755 | |
| 756 | PyObject* 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 | |
| 775 | void InterpreterSingleton::runMethod( |
| 776 | PyObject* pobject, |
no test coverage detected