| 598 | } |
| 599 | |
| 600 | ts_lua_cont_info * |
| 601 | ts_lua_get_cont_info(lua_State *L) |
| 602 | { |
| 603 | ts_lua_cont_info *ci; |
| 604 | |
| 605 | lua_pushliteral(L, "__ts_cont_info"); |
| 606 | lua_rawget(L, LUA_GLOBALSINDEX); |
| 607 | ci = static_cast<decltype(ci)>(lua_touserdata(L, -1)); |
| 608 | |
| 609 | lua_pop(L, 1); // pop the coroutine out |
| 610 | |
| 611 | return ci; |
| 612 | } |
| 613 | |
| 614 | ts_lua_http_ctx * |
| 615 | ts_lua_create_async_ctx(lua_State *L, ts_lua_cont_info *hci, int n) |
no outgoing calls
no test coverage detected