| 348 | |
| 349 | |
| 350 | static int luaB_loadfile (lua_State *L) { |
| 351 | const char *fname = luaL_optstring(L, 1, NULL); |
| 352 | const char *mode = getMode(L, 2); |
| 353 | int env = (!lua_isnone(L, 3) ? 3 : 0); /* 'env' index or 0 if no 'env' */ |
| 354 | int status = luaL_loadfilex(L, fname, mode); |
| 355 | return load_aux(L, status, env); |
| 356 | } |
| 357 | |
| 358 | |
| 359 | /* |
nothing calls this directly
no test coverage detected