mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed inline set on extern methods
This commit is contained in:
parent
496eae24ad
commit
04126a7e40
2 changed files with 7 additions and 2 deletions
|
@ -822,7 +822,12 @@ void BfDefBuilder::ParseAttributes(BfAttributeDirective* attributes, BfMethodDef
|
|||
else if (typeRefName == "CVarArgs")
|
||||
methodDef->mCallingConvention = BfCallingConvention_CVarArgs;
|
||||
else if (typeRefName == "Inline")
|
||||
methodDef->mAlwaysInline = true;
|
||||
{
|
||||
if (methodDef->mIsExtern)
|
||||
Fail("Extern methods cannot be inline", attributes->mAttributeTypeRef);
|
||||
else
|
||||
methodDef->mAlwaysInline = true;
|
||||
}
|
||||
else if (typeRefName == "AllowAppend")
|
||||
{
|
||||
methodDef->mHasAppend = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue