| 11177 | |
| 11178 | |
| 11179 | static int luaB_load (lua_State *L) { |
| 11180 | int status; |
| 11181 | const char *cname = luaL_optstring(L, 2, "=(load)"); |
| 11182 | luaL_checktype(L, 1, LUA_TFUNCTION); |
| 11183 | lua_settop(L, 3); /* function, eventual name, plus one reserved slot */ |
| 11184 | status = lua_load(L, generic_reader, NULL, cname); |
| 11185 | return load_aux(L, status); |
| 11186 | } |
| 11187 | |
| 11188 | |
| 11189 | static int luaB_dofile (lua_State *L) { |
nothing calls this directly
no test coverage detected