mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Fixed display of valueless enums
This commit is contained in:
parent
8709c92f22
commit
37e5576973
1 changed files with 7 additions and 1 deletions
|
@ -7402,6 +7402,12 @@ String WinDebugger::DbgTypedValueToString(const DbgTypedValue& origTypedValue, c
|
|||
int idx = (int)retVal.IndexOf('\n');
|
||||
if (idx != -1)
|
||||
{
|
||||
if ((idx > 2) && (strncmp(retVal.c_str() + idx - 2, "()", 2) == 0))
|
||||
{
|
||||
// Take off a terminating "()" on the value, if there is one
|
||||
retVal.Remove(idx - 2, 2);
|
||||
}
|
||||
|
||||
String typeName = innerType->ToString(DbgLanguage_Unknown, true);
|
||||
typeName += " ";
|
||||
retVal.Insert(idx + 1, typeName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue