| 108 | |
| 109 | |
| 110 | void APyPawn::CallPythonPawnMethod(FString method_name) |
| 111 | { |
| 112 | if (!py_pawn_instance) |
| 113 | return; |
| 114 | |
| 115 | FScopePythonGIL gil; |
| 116 | |
| 117 | PyObject *ret = PyObject_CallMethod(py_pawn_instance, TCHAR_TO_UTF8(*method_name), NULL); |
| 118 | if (!ret) { |
| 119 | unreal_engine_py_log_error(); |
| 120 | return; |
| 121 | } |
| 122 | Py_DECREF(ret); |
| 123 | } |
| 124 | |
| 125 | bool APyPawn::CallPythonPawnMethodBool(FString method_name) |
| 126 | { |
nothing calls this directly
no test coverage detected