| 906 | } |
| 907 | |
| 908 | static int dfhack_coresume (lua_State *L) { |
| 909 | lua_State *co = lua_tothread(L, 1); |
| 910 | luaL_argcheck(L, !!co, 1, "coroutine expected"); |
| 911 | int r = resume_helper(L, co, lua_gettop(L) - 1, LUA_MULTRET); |
| 912 | bool ok = Lua::IsSuccess(r); |
| 913 | lua_pushboolean(L, ok); |
| 914 | lua_insert(L, 2); |
| 915 | return lua_gettop(L) - 1; |
| 916 | } |
| 917 | |
| 918 | static int dfhack_saferesume (lua_State *L) { |
| 919 | lua_State *co = lua_tothread(L, 1); |
nothing calls this directly
no test coverage detected