| 118 | } |
| 119 | |
| 120 | void DFHack::Lua::GetVector(lua_State *state, std::vector<std::string> &pvec, int idx) |
| 121 | { |
| 122 | luaL_checktype(state, idx, LUA_TTABLE); |
| 123 | lua_pushnil(state); // first key |
| 124 | while (lua_next(state, idx) != 0) |
| 125 | { |
| 126 | pvec.push_back(lua_tostring(state, -1)); |
| 127 | lua_pop(state, 1); // remove value, leave key |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | static bool trigger_inhibit_l = false; |
| 132 | static bool trigger_inhibit_r = false; |
nothing calls this directly
no test coverage detected