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

Function dfhack_onerror

library/LuaTools.cpp:663–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

661}
662
663static int dfhack_onerror(lua_State *L)
664{
665 luaL_checkany(L, 1);
666 lua_settop(L, 1);
667
668 convert_to_exception(L, 1);
669 return 1;
670}
671
672static int dfhack_error(lua_State *L)
673{

Callers

nothing calls this directly

Calls 3

luaL_checkanyFunction · 0.85
lua_settopFunction · 0.85
convert_to_exceptionFunction · 0.85

Tested by

no test coverage detected