From 5640e6b074dd1734d9a503f3be987b8b2bd5c4f1 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Mon, 14 Sep 2020 06:52:51 -0700 Subject: [PATCH] Added ctor options to some method attributes --- BeefLibs/corlib/src/Attribute.bf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BeefLibs/corlib/src/Attribute.bf b/BeefLibs/corlib/src/Attribute.bf index e536ff13..b18c9437 100644 --- a/BeefLibs/corlib/src/Attribute.bf +++ b/BeefLibs/corlib/src/Attribute.bf @@ -158,13 +158,13 @@ namespace System } - [AttributeUsage(.Method /*2*/ | .StaticField)] + [AttributeUsage(.Method /*2*/ | .Constructor | .StaticField)] public struct CLinkAttribute : Attribute { } - [AttributeUsage(.Method /*2*/ | .StaticField)] + [AttributeUsage(.Method /*2*/ | .Constructor | .StaticField)] public struct LinkNameAttribute : Attribute { public enum MangleKind @@ -183,7 +183,7 @@ namespace System } } - [AttributeUsage(.Method | .Delegate | .Function)] + [AttributeUsage(.Method | .Constructor | .Delegate | .Function)] public struct CallingConventionAttribute : Attribute { public enum Kind @@ -201,7 +201,7 @@ namespace System } [Obsolete("Use [CallingConvention(.Stdcall)]", false)] - [AttributeUsage(.Method | .Delegate | .Function)] + [AttributeUsage(.Method | .Constructor | .Delegate | .Function)] public struct StdCallAttribute : Attribute {