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

Function push_simple_error

library/LuaTools.cpp:768–774  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

766}
767
768static void push_simple_error(lua_State *L, const char *str)
769{
770 lua_pushstring(L, str);
771
772 if (lua_checkstack(L, LUA_MINSTACK))
773 convert_to_exception(L, 0);
774}
775
776static bool do_finish_pcall(lua_State *L, bool success, int base = 1, int space = 2)
777{

Callers 4

do_finish_pcallFunction · 0.85
resume_helperFunction · 0.85
dfhack_cleanup_contFunction · 0.85

Calls 3

lua_pushstringFunction · 0.85
lua_checkstackFunction · 0.85
convert_to_exceptionFunction · 0.85

Tested by

no test coverage detected