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:
parent
904f907f1d
commit
61d9edea83
26 changed files with 413 additions and 96 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue