| 91 | #endif |
| 92 | |
| 93 | static int auto_load(lua_State* L) |
| 94 | { |
| 95 | if ((lua_gettop(L) < 2) || !lua_istable(L, 1) || !lua_isstring(L, 2)) |
| 96 | { |
| 97 | lua_pushnil(L); |
| 98 | return 1; |
| 99 | } |
| 100 | ai().script_engine().process_file_if_exists(lua_tostring(L, 2), false); |
| 101 | lua_rawget(L, 1); |
| 102 | return 1; |
| 103 | } |
| 104 | |
| 105 | void CScriptEngine::setup_auto_load() |
| 106 | { |
nothing calls this directly
no test coverage detected