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

Function luaB_loadfile

third-party/lua-5.4.6/src/lbaselib.c:340–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338
339
340static int luaB_loadfile (lua_State *L) {
341 const char *fname = luaL_optstring(L, 1, NULL);
342 const char *mode = luaL_optstring(L, 2, NULL);
343 int env = (!lua_isnone(L, 3) ? 3 : 0); /* 'env' index or 0 if no 'env' */
344 int status = luaL_loadfilex(L, fname, mode);
345 return load_aux(L, status, env);
346}
347
348
349/*

Callers

nothing calls this directly

Calls 2

luaL_loadfilexFunction · 0.70
load_auxFunction · 0.70

Tested by

no test coverage detected