mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Fixed enums in debugger, reformatting of operator constraints
This commit is contained in:
parent
533ef0856b
commit
7b8251c311
11 changed files with 65 additions and 22 deletions
|
@ -904,6 +904,24 @@ const String& DbgSrcFile::GetLocalPath()
|
|||
return (!mLocalPath.IsEmpty()) ? mLocalPath : mFilePath;
|
||||
}
|
||||
|
||||
void DbgSrcFile::GetHash(String& outStr)
|
||||
{
|
||||
if (mHashKind == DbgHashKind_MD5)
|
||||
{
|
||||
for (int i = 0; i < 16; i++)
|
||||
{
|
||||
outStr += StrFormat("%02X", mHash[i]);
|
||||
}
|
||||
}
|
||||
else if (mHashKind == DbgHashKind_SHA256)
|
||||
{
|
||||
for (int i = 0; i < 32; i++)
|
||||
{
|
||||
outStr += StrFormat("%02X", mHash[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
DbgType::DbgType()
|
||||
|
@ -1393,10 +1411,11 @@ DbgType* DbgType::GetPrimaryType()
|
|||
if ((mCompileUnit != NULL) &&
|
||||
((mCompileUnit->mLanguage == DbgLanguage_Beef) || (mTypeCode == DbgType_Namespace) || (mIsDeclaration)))
|
||||
{
|
||||
mPrimaryType = mCompileUnit->mDbgModule->GetPrimaryType(this);
|
||||
mPrimaryType = mCompileUnit->mDbgModule->GetPrimaryType(this);
|
||||
mTypeCode = mPrimaryType->mTypeCode;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return mPrimaryType;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue