| 285 | |
| 286 | |
| 287 | static int luaB_loadfile (lua_State *L) { |
| 288 | const char *fname = luaL_optstring(L, 1, NULL); |
| 289 | const char *mode = luaL_optstring(L, 2, NULL); |
| 290 | int env = (!lua_isnone(L, 3) ? 3 : 0); /* 'env' index or 0 if no 'env' */ |
| 291 | int status = luaL_loadfilex(L, fname, mode); |
| 292 | return load_aux(L, status, env); |
| 293 | } |
| 294 | |
| 295 | |
| 296 | /* |
nothing calls this directly
no test coverage detected