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

Function checkload

third-party/lua-5.2.4/src/loadlib.c:398–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396
397
398static int checkload (lua_State *L, int stat, const char *filename) {
399 if (stat) { /* module loaded successfully? */
400 lua_pushstring(L, filename); /* will be 2nd argument to module */
401 return 2; /* return open function and file name */
402 }
403 else
404 return luaL_error(L, "error loading module " LUA_QS
405 " from file " LUA_QS ":\n\t%s",
406 lua_tostring(L, 1), filename, lua_tostring(L, -1));
407}
408
409
410static int searcher_Lua (lua_State *L) {

Callers 3

searcher_LuaFunction · 0.70
searcher_CFunction · 0.70
searcher_CrootFunction · 0.70

Calls 2

lua_pushstringFunction · 0.70
luaL_errorFunction · 0.70

Tested by

no test coverage detected