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

Attribute error fix for functions

This commit is contained in:
Brian Fiete 2021-06-07 06:23:22 -07:00
parent 6703cd18ee
commit 1e5e263a31

View file

@ -11394,6 +11394,8 @@ BfCustomAttributes* BfModule::GetCustomAttributes(BfTypeDef* typeDef)
BfAttributeTargets attrTarget;
if (typeDef->mIsDelegate)
attrTarget = BfAttributeTargets_Delegate;
else if (typeDef->mIsFunction)
attrTarget = BfAttributeTargets_Function;
else if (typeDef->mTypeCode == BfTypeCode_Enum)
attrTarget = BfAttributeTargets_Enum;
else if (typeDef->mTypeCode == BfTypeCode_Interface)