浏览代码

Removing CVarAttribute

Brian Fiete 4 年之前
父节点
当前提交
b5aa92ff33
共有 3 个文件被更改,包括 2 次插入11 次删除
  1. 0 6
      BeefLibs/corlib/src/Attribute.bf
  2. 1 3
      IDEHelper/Compiler/BfDefBuilder.cpp
  3. 1 2
      IDEHelper/Compiler/BfSystem.h

+ 0 - 6
BeefLibs/corlib/src/Attribute.bf

@@ -251,12 +251,6 @@ namespace System
 
 	}
 
-	[AttributeUsage(.Method /*2*/)]
-	public struct CVarArgsAttribute : Attribute
-	{
-
-	}
-
 	[AttributeUsage(.Method /*2*/)]
 	public struct NoReturnAttribute : Attribute
 	{

+ 1 - 3
IDEHelper/Compiler/BfDefBuilder.cpp

@@ -803,9 +803,7 @@ void BfDefBuilder::ParseAttributes(BfAttributeDirective* attributes, BfMethodDef
 			if (typeRefName == "CLink")
 				methodDef->mCLink = true;
 			else if (typeRefName == "StdCall")
-				methodDef->mCallingConvention = BfCallingConvention_Stdcall;
-			else if (typeRefName == "CVarArgs")
-				methodDef->mCallingConvention = BfCallingConvention_CVarArgs;
+				methodDef->mCallingConvention = BfCallingConvention_Stdcall;			
 			else if (typeRefName == "Inline")
 			{
 				if (methodDef->mIsExtern)

+ 1 - 2
IDEHelper/Compiler/BfSystem.h

@@ -720,8 +720,7 @@ enum BfCallingConvention : uint8
 	BfCallingConvention_Unspecified,
 	BfCallingConvention_Cdecl,
 	BfCallingConvention_Stdcall,
-	BfCallingConvention_Fastcall,
-	BfCallingConvention_CVarArgs,
+	BfCallingConvention_Fastcall,	
 };
 
 #define BF_METHODNAME_MARKMEMBERS "GCMarkMembers"