| 120 | }; |
| 121 | |
| 122 | std::string cliGetString(lua_State* L, int index) { |
| 123 | size_t len = 0; |
| 124 | auto str = luaL_checklstring(L, index, &len); |
| 125 | return {str, len}; |
| 126 | } |
| 127 | |
| 128 | fs::path cliAbsolutePath(const fs::path& path, const fs::path& base = fs::current_path()) { |
| 129 | return fs::absolute(path.is_relative() ? base / path : path).lexically_normal(); |
no test coverage detected