MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / checkload

Function checkload

src/Chain/libraries/glua/loadlib.cpp:452–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450
451
452static int checkload(lua_State *L, int stat, const char *filename) {
453 if (stat) { /* module loaded successfully? */
454 lua_pushstring(L, filename); /* will be 2nd argument to module */
455 return 2; /* return open function and file name */
456 }
457 else
458 return luaL_error(L, "error loading module '%s' from file '%s':\n\t%s",
459 lua_tostring(L, 1), filename, lua_tostring(L, -1));
460}
461
462
463static int searcher_Lua(lua_State *L) {

Callers 4

searcher_LuaFunction · 0.85
searcher_thinkyoungFunction · 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