MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / FixPath

Function FixPath

emmy_debugger/src/debugger/emmy_debugger.cpp:619–631  ·  view source on GitHub ↗

_G.emmy.fixPath = function(path) return (newPath) end

Source from the content-addressed store, hash-verified

617
618// _G.emmy.fixPath = function(path) return (newPath) end
619int FixPath(lua_State *L) {
620 const auto path = lua_tostring(L, 1);
621 lua_getglobal(L, "emmy");
622 if (lua_istable(L, -1)) {
623 lua_getfield(L, -1, "fixPath");
624 if (lua_isfunction(L, -1)) {
625 lua_pushstring(L, path);
626 lua_call(L, 1, 1);
627 return 1;
628 }
629 }
630 return 0;
631}
632
633std::string Debugger::GetFile(lua_Debug *ar) const {
634 if (!currentL) {

Callers

nothing calls this directly

Calls 4

lua_getglobalFunction · 0.50
lua_getfieldFunction · 0.50
lua_pushstringFunction · 0.50
lua_callFunction · 0.50

Tested by

no test coverage detected