mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Comptime improvments, IOn<X> interfaces, const payload enum
This commit is contained in:
parent
e7fe91facb
commit
f37fb2c1b7
20 changed files with 884 additions and 364 deletions
|
@ -2981,7 +2981,7 @@ BfTypedValue BfModule::HandleCaseBind(BfTypedValue enumVal, const BfTypedValue&
|
|||
if (type->IsEnum())
|
||||
{
|
||||
auto enumType = (BfTypeInstance*)type;
|
||||
for (auto fieldInstance : enumType->mFieldInstances)
|
||||
for (auto& fieldInstance : enumType->mFieldInstances)
|
||||
{
|
||||
auto fieldDef = fieldInstance.GetFieldDef();
|
||||
if ((fieldDef != NULL) && (fieldDef->IsEnumCaseEntry()) && (fieldDef->mName == findName))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue