MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / checkload

Function checkload

3rd/lua-5.4.3/src/loadlib.c:534–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532
533
534static int checkload (lua_State *L, int stat, const char *filename) {
535 if (l_likely(stat)) { /* module loaded successfully? */
536 lua_pushstring(L, filename); /* will be 2nd argument to module */
537 return 2; /* return open function and file name */
538 }
539 else
540 return luaL_error(L, "error loading module '%s' from file '%s':\n\t%s",
541 lua_tostring(L, 1), filename, lua_tostring(L, -1));
542}
543
544
545static int searcher_Lua (lua_State *L) {

Callers 3

searcher_LuaFunction · 0.85
searcher_CFunction · 0.85
searcher_CrootFunction · 0.85

Calls 2

lua_pushstringFunction · 0.85
luaL_errorFunction · 0.85

Tested by

no test coverage detected