| 270 | } |
| 271 | |
| 272 | py::object await_resume() |
| 273 | { |
| 274 | if (!exception.is_none()) |
| 275 | { |
| 276 | py::object locals = py::dict(); |
| 277 | PyRun_String( |
| 278 | R"(def __rethrow__(ex): |
| 279 | raise ex; |
| 280 | )", |
| 281 | Py_single_input, PyEval_GetGlobals(), locals.ptr()); |
| 282 | locals["__rethrow__"](exception); |
| 283 | } |
| 284 | return std::move(result); |
| 285 | } |
| 286 | }; |
| 287 | |
| 288 | cobalt::generator<int> test_generator() |
nothing calls this directly
no outgoing calls
no test coverage detected