| 422 | } |
| 423 | |
| 424 | void oid_exec(const AppHandler handler) { |
| 425 | const auto py_gil_raii = PyGILRAII{}; |
| 426 | |
| 427 | const auto app = static_cast<OidBridge*>(handler); |
| 428 | |
| 429 | if (app == nullptr) [[unlikely]] { |
| 430 | RAISE_PY_EXCEPTION(PyExc_RuntimeError, |
| 431 | "oid_exec received null application handler"); |
| 432 | return; |
| 433 | } |
| 434 | |
| 435 | app->start(); |
| 436 | } |
| 437 | |
| 438 | int oid_is_window_ready(const AppHandler handler) { |
| 439 | const auto py_gil_raii = PyGILRAII{}; |