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

Function luaB_error

third-party/lua-5.1.5/src/lbaselib.c:81–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79
80
81static int luaB_error (lua_State *L) {
82 int level = luaL_optint(L, 2, 1);
83 lua_settop(L, 1);
84 if (lua_isstring(L, 1) && level > 0) { /* add extra information? */
85 luaL_where(L, level);
86 lua_pushvalue(L, 1);
87 lua_concat(L, 2);
88 }
89 return lua_error(L);
90}
91
92
93static int luaB_getmetatable (lua_State *L) {

Callers

nothing calls this directly

Calls 6

lua_settopFunction · 0.70
lua_isstringFunction · 0.70
luaL_whereFunction · 0.70
lua_pushvalueFunction · 0.70
lua_concatFunction · 0.70
lua_errorFunction · 0.70

Tested by

no test coverage detected