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

Function luaB_loadfile

3rd/lua-5.4.3/src/lbaselib.c:319–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317
318
319static int luaB_loadfile (lua_State *L) {
320 const char *fname = luaL_optstring(L, 1, NULL);
321 const char *mode = luaL_optstring(L, 2, NULL);
322 int env = (!lua_isnone(L, 3) ? 3 : 0); /* 'env' index or 0 if no 'env' */
323 int status = luaL_loadfilex(L, fname, mode);
324 return load_aux(L, status, env);
325}
326
327
328/*

Callers

nothing calls this directly

Calls 2

luaL_loadfilexFunction · 0.85
load_auxFunction · 0.85

Tested by

no test coverage detected