Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions emmy_debugger/src/debugger/emmy_debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,18 +333,19 @@ void DisplayFunction(Idx<Variable> variable, lua_State *L, int index) {
lua_pushvalue(L, index);
if (lua_getinfo(L, ">Snu", &ar) == 0) {
variable->value = ToPointer(L, index);
return;
}
switch (luaVersion) {
case LuaVersion::LUA_54: {
DisplayFunction54(variable, L, index, ar.u.ar54);
break;
}
default: {
variable->value = ToPointer(L, index);
break;
else {
switch (luaVersion) {
case LuaVersion::LUA_54: {
DisplayFunction54(variable, L, index, ar.u.ar54);
break;
}
default: {
variable->value = ToPointer(L, index);
break;
}
}
}
}
lua_settop(L, index);
}
#endif
Expand Down Expand Up @@ -1452,4 +1453,4 @@ bool Debugger::RegisterTypeName(const std::string& typeName, std::string& err) {
displayCustomTypeInfo = true;
registeredTypes.set(type);
return true;
}
}