1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Changed debug info for enums

This commit is contained in:
Brian Fiete 2019-11-02 06:02:00 -07:00
parent c7f76f879a
commit 54fa1e0811
4 changed files with 35 additions and 38 deletions

View file

@ -3430,7 +3430,7 @@ DbgTypedValue DbgExprEvaluator::LookupIdentifier(BfAstNode* identifierNode, bool
}
String findName = identifierNode->ToString();
if (findName[0] == '$')
if ((findName[0] == '$') && (findName != "$prim"))
{
if (IsAutoCompleteNode(identifierNode))
{
@ -3484,7 +3484,11 @@ DbgTypedValue DbgExprEvaluator::LookupIdentifier(BfAstNode* identifierNode, bool
if (findName[i] == '$')
mayBeRegister = false;
if (mayBeRegister)
return GetRegister(findName.Substring(1));
{
DbgTypedValue val = GetRegister(findName.Substring(1));
if (val)
return val;
}
}
DbgTypedValue result;