mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed comptime type ToString
This commit is contained in:
parent
e30972d3af
commit
f96e231d7b
1 changed files with 9 additions and 2 deletions
|
@ -6241,8 +6241,15 @@ bool CeContext::Execute(CeFunction* startFunction, uint8* startStackPtr, uint8*
|
||||||
SetAndRestoreValue<BfMethodInstance*> prevMethodInstance(mCeMachine->mCeModule->mCurMethodInstance, mCallerMethodInstance);
|
SetAndRestoreValue<BfMethodInstance*> prevMethodInstance(mCeMachine->mCeModule->mCurMethodInstance, mCallerMethodInstance);
|
||||||
SetAndRestoreValue<BfTypeInstance*> prevTypeInstance(mCeMachine->mCeModule->mCurTypeInstance, mCallerTypeInstance);
|
SetAndRestoreValue<BfTypeInstance*> prevTypeInstance(mCeMachine->mCeModule->mCurTypeInstance, mCallerTypeInstance);
|
||||||
|
|
||||||
|
bool simpleName = false;
|
||||||
|
if ((type->IsUnspecializedType()) && (!type->IsUnspecializedTypeVariation()) && (!type->IsGenericParam()))
|
||||||
|
simpleName = true;
|
||||||
String typeName;
|
String typeName;
|
||||||
mCeMachine->mCeModule->DoTypeToString(typeName, type, BfTypeNameFlags_None);
|
if (simpleName)
|
||||||
|
mCeMachine->mCeModule->DoTypeToString(typeName, type, BfTypeNameFlags_None);
|
||||||
|
else
|
||||||
|
typeName = mCeMachine->mCeModule->TypeToString(type);
|
||||||
|
|
||||||
CeSetAddrVal(stackPtr + 0, GetString(typeName), ptrSize);
|
CeSetAddrVal(stackPtr + 0, GetString(typeName), ptrSize);
|
||||||
_FixVariables();
|
_FixVariables();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue