| 1482 | } |
| 1483 | |
| 1484 | void SetGlobalArray(lua_State *lua, const std::string &var, const std::vector<std::string> &elems) { |
| 1485 | PushArray(lua, elems); |
| 1486 | lua_setglobal(lua, var.c_str()); |
| 1487 | } |
| 1488 | |
| 1489 | void PushArray(lua_State *lua, const std::vector<std::string> &elems) { |
| 1490 | lua_newtable(lua); |
no test coverage detected