MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / luaB_error

Function luaB_error

deps/lua/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.85
lua_isstringFunction · 0.85
luaL_whereFunction · 0.85
lua_pushvalueFunction · 0.85
lua_concatFunction · 0.85
lua_errorFunction · 0.85

Tested by

no test coverage detected