1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Add Mixin methog flag

This commit is contained in:
zkw 2024-04-27 13:52:00 +02:00
parent 1625d511be
commit 0d680ca5c2
4 changed files with 7 additions and 0 deletions

View file

@ -830,6 +830,8 @@ BfMethodFlags BfMethodInstance::GetMethodFlags()
methodFlags = (BfMethodFlags)(methodFlags | BfMethodFlags_Constructor);
if (mMethodDef->mIsReadOnly)
methodFlags = (BfMethodFlags)(methodFlags | BfMethodFlags_ReadOnly);
if (mMethodDef->mMethodType == BfMethodType_Mixin)
methodFlags = (BfMethodFlags)(methodFlags | BfMethodFlags_Mixin);
auto callingConvention = GetOwner()->mModule->GetIRCallingConvention(this);
if (callingConvention == BfIRCallingConv_ThisCall)

View file

@ -240,6 +240,7 @@ enum BfMethodFlags
BfMethodFlags_Static = 0x10,
BfMethodFlags_Virtual = 0x40,
BfMethodFlags_ReadOnly = 0x100,
BfMethodFlags_Mixin = 0x200,
BfMethodFlags_StdCall = 0x1000,
BfMethodFlags_FastCall = 0x2000,
BfMethodFlags_ThisCall = 0x3000,