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

Function luaL_where

third-party/lua-5.2.4/src/lauxlib.c:183–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181
182
183LUALIB_API void luaL_where (lua_State *L, int level) {
184 lua_Debug ar;
185 if (lua_getstack(L, level, &ar)) { /* check function at level */
186 lua_getinfo(L, "Sl", &ar); /* get info about it */
187 if (ar.currentline > 0) { /* is there info? */
188 lua_pushfstring(L, "%s:%d: ", ar.short_src, ar.currentline);
189 return;
190 }
191 }
192 lua_pushliteral(L, ""); /* else, no information available... */
193}
194
195
196LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) {

Callers 3

luaB_errorFunction · 0.70
luaL_errorFunction · 0.70
luaB_auxwrapFunction · 0.70

Calls 3

lua_getstackFunction · 0.70
lua_getinfoFunction · 0.70
lua_pushfstringFunction · 0.70

Tested by

no test coverage detected