| 385 | } |
| 386 | |
| 387 | void cliSetFunc(lua_State* L, const char* name, lua_CFunction func) { |
| 388 | lua_pushcfunction(L, func); |
| 389 | lua_setfield(L, -2, name); |
| 390 | } |
| 391 | |
| 392 | void cliRegisterLua(lua_State* L, int argc, char* argv[], const fs::path& scriptPath, int cliIndex, const std::optional<fs::path>& assetPath) { |
| 393 | luaL_openlibs(L); |
no test coverage detected