1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Reworked binary operators and transformability

This commit is contained in:
Brian Fiete 2020-12-03 07:50:36 -08:00
parent 230b71cecb
commit b49e513494
5 changed files with 45 additions and 64 deletions

View file

@ -831,7 +831,10 @@ void BfDefBuilder::ParseAttributes(BfAttributeDirective* attributes, BfMethodDef
}
else
{
methodDef->mCommutableKind = BfCommutableKind_Forward;
if (methodDef->mIsOperator)
methodDef->mCommutableKind = BfCommutableKind_Operator;
else
methodDef->mCommutableKind = BfCommutableKind_Forward;
}
}
}