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

Function luaL_error

depends/lua/src/lauxlib.c:223–231  ·  view source on GitHub ↗

** Again, the use of 'lua_pushvfstring' ensures this function does ** not need reserved stack space when called. (At worst, it generates ** an error with "stack overflow" instead of the given message.) */

Source from the content-addressed store, hash-verified

221** an error with "stack overflow" instead of the given message.)
222*/
223LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) {
224 va_list argp;
225 va_start(argp, fmt);
226 luaL_where(L, 1);
227 lua_pushvfstring(L, fmt, argp);
228 va_end(argp);
229 lua_concat(L, 2);
230 return lua_error(L);
231}
232
233
234LUALIB_API int luaL_fileresult (lua_State *L, int stat, const char *fname) {

Callers 15

check_valid_ptr_indexFunction · 0.85
signal_typeid_errorFunction · 0.85
lua_print_fmtFunction · 0.85
interrupt_hookFunction · 0.85
dfhack_open_pluginFunction · 0.85
dfhack_timeoutFunction · 0.85
lua_insert2Method · 0.85
CallWithCatchMethod · 0.85

Calls 4

luaL_whereFunction · 0.85
lua_pushvfstringFunction · 0.85
lua_concatFunction · 0.85
lua_errorFunction · 0.85

Tested by

no test coverage detected