MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaL_error

Function luaL_error

third-party/lua-5.5.0/src/lauxlib.c:238–246  ·  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 ** a memory error instead of the given message.) */

Source from the content-addressed store, hash-verified

236** a memory error instead of the given message.)
237*/
238LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) {
239 va_list argp;
240 va_start(argp, fmt);
241 luaL_where(L, 1);
242 lua_pushvfstring(L, fmt, argp);
243 va_end(argp);
244 lua_concat(L, 2);
245 return lua_error(L);
246}
247
248
249LUALIB_API int luaL_fileresult (lua_State *L, int stat, const char *fname) {

Callers 15

lstopFunction · 0.70
pushargsFunction · 0.70
luaB_setmetatableFunction · 0.70
generic_readerFunction · 0.70
math_randomFunction · 0.70
str_repFunction · 0.70
str_byteFunction · 0.70
trymtFunction · 0.70
check_captureFunction · 0.70
capture_to_closeFunction · 0.70
classendFunction · 0.70
matchbalanceFunction · 0.70

Calls 4

luaL_whereFunction · 0.70
lua_pushvfstringFunction · 0.70
lua_concatFunction · 0.70
lua_errorFunction · 0.70

Tested by

no test coverage detected