1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-18 08:06:04 +02:00

Added CallingConvention support, mangle specifying

This commit is contained in:
Brian Fiete 2020-05-04 07:15:38 -07:00
parent 904f907f1d
commit 61d9edea83
26 changed files with 413 additions and 96 deletions

View file

@ -156,12 +156,41 @@ namespace System
[AttributeUsage(.Method /*2*/ | .StaticField)]
public struct LinkNameAttribute : Attribute
{
public enum MangleKind
{
Beef,
C,
CPP
}
public this(String linkName)
{
}
public this(MangleKind mangleKind)
{
}
}
[AttributeUsage(.Method | .Delegate | .Function)]
public struct CallingConventionAttribute : Attribute
{
public enum Kind
{
Unspecified,
Cdecl,
Stdcall,
Fastcall,
}
public this(Kind callingConvention)
{
}
}
[AttributeUsage(.Method | .Delegate | .Function)]
public struct StdCallAttribute : Attribute
{