MCPcopy Create free account
hub / github.com/DFHack/dfhack / internal_cxxDemangle

Function internal_cxxDemangle

library/LuaApi.cpp:4014–4030  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4012}
4013
4014static int internal_cxxDemangle(lua_State *L)
4015{
4016 string mangled = luaL_checkstring(L, 1);
4017 string status;
4018 string demangled = cxx_demangle(mangled, &status);
4019 if (demangled.length())
4020 {
4021 lua_pushstring(L, demangled.c_str());
4022 return 1;
4023 }
4024 else
4025 {
4026 lua_pushnil(L);
4027 lua_pushstring(L, status.c_str());
4028 return 2;
4029 }
4030}
4031
4032static int internal_runCommand(lua_State *L)
4033{

Callers

nothing calls this directly

Calls 4

lua_pushstringFunction · 0.85
lua_pushnilFunction · 0.85
lengthMethod · 0.80
c_strMethod · 0.80

Tested by

no test coverage detected