MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / luaB_loadfile

Function luaB_loadfile

extlibs/lua/src/lbaselib.c:318–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

load_auxFunction · 0.85
luaL_loadfilexFunction · 0.70

Tested by

no test coverage detected