MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / cliLuaAbsolute

Function cliLuaAbsolute

Source/Basic/Application.cpp:211–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211int cliLuaAbsolute(lua_State* L) {
212 auto path = fs::path(cliGetString(L, 1));
213 auto base = lua_gettop(L) >= 2 && !lua_isnil(L, 2) ? fs::path(cliGetString(L, 2)) : fs::current_path();
214 auto result = cliAbsolutePath(path, base).string();
215 lua_pushlstring(L, result.c_str(), result.size());
216 return 1;
217}
218
219int cliLuaExists(lua_State* L) {
220 std::error_code err;

Callers

nothing calls this directly

Calls 9

cliGetStringFunction · 0.85
current_pathFunction · 0.85
cliAbsolutePathFunction · 0.85
pathClass · 0.50
lua_gettopFunction · 0.50
lua_pushlstringFunction · 0.50
stringMethod · 0.45
c_strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected