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

Function lua_dfhack_with_suspend

library/LuaTools.cpp:1411–1420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1409}
1410
1411static int lua_dfhack_with_suspend(lua_State *L)
1412{
1413 int nargs = lua_gettop(L);
1414 luaL_checktype(L, 1, LUA_TFUNCTION);
1415
1416 CoreSuspender suspend;
1417 lua_call(L, nargs-1, LUA_MULTRET);
1418
1419 return lua_gettop(L);
1420}
1421
1422static int dfhack_open_plugin(lua_State *L)
1423{

Callers

nothing calls this directly

Calls 2

lua_gettopFunction · 0.85
luaL_checktypeFunction · 0.85

Tested by

no test coverage detected