MCPcopy Create free account
hub / github.com/DFHack/dfhack / dfhack_coresume

Function dfhack_coresume

library/LuaTools.cpp:908–916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

906}
907
908static 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
918static int dfhack_saferesume (lua_State *L) {
919 lua_State *co = lua_tothread(L, 1);

Callers

nothing calls this directly

Calls 5

lua_tothreadFunction · 0.85
resume_helperFunction · 0.85
lua_gettopFunction · 0.85
IsSuccessFunction · 0.85
lua_pushbooleanFunction · 0.85

Tested by

no test coverage detected