| 1282 | } |
| 1283 | |
| 1284 | static bool init_interpreter(color_ostream &out, lua_State *state, const char* prompt, const char* hfile) |
| 1285 | { |
| 1286 | lua_rawgetp(state, LUA_REGISTRYINDEX, &DFHACK_DFHACK_TOKEN); |
| 1287 | lua_getfield(state, -1, "interpreter"); |
| 1288 | lua_remove(state, -2); |
| 1289 | lua_pushstring(state, prompt); |
| 1290 | lua_pushstring(state, hfile); |
| 1291 | return true; |
| 1292 | } |
| 1293 | |
| 1294 | bool DFHack::Lua::InterpreterLoop(color_ostream &out, lua_State *state, |
| 1295 | const char *prompt, const char *hfile) |
nothing calls this directly
no test coverage detected