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

Function luaB_error

depends/lua/src/lbaselib.c:102–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100
101
102static int luaB_error (lua_State *L) {
103 int level = (int)luaL_optinteger(L, 2, 1);
104 lua_settop(L, 1);
105 if (lua_type(L, 1) == LUA_TSTRING && level > 0) {
106 luaL_where(L, level); /* add extra information */
107 lua_pushvalue(L, 1);
108 lua_concat(L, 2);
109 }
110 return lua_error(L);
111}
112
113
114static int luaB_getmetatable (lua_State *L) {

Callers 1

luaB_assertFunction · 0.85

Calls 7

luaL_optintegerFunction · 0.85
lua_settopFunction · 0.85
lua_typeFunction · 0.85
luaL_whereFunction · 0.85
lua_pushvalueFunction · 0.85
lua_concatFunction · 0.85
lua_errorFunction · 0.85

Tested by

no test coverage detected