| 4012 | } |
| 4013 | |
| 4014 | static 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 | |
| 4032 | static int internal_runCommand(lua_State *L) |
| 4033 | { |
nothing calls this directly
no test coverage detected