CallingConvention

The CallingConvention aspect can be applied to methods and global functions to override the calling convention used to call them. It takes one parameter of type CallingConvention, and its value can be Default, FastCall, Stdcall or Cdecl. It is used on Island projects compiled for 32-bit Intel (i386) only, and ignored for all other Island architectures.

Island Only

The CallingConvention aspect is available on the Island platform only.

[CallingConvention(CallingConvention.StdCal)]
method Foo(aParameter: String): String;
[CallingConvention(CallingConvention.StdCal)]
public string Foo(string parameter) {}
@CallingConvention(CallingConvention.StdCal)]
public func Foo(_ parameter: String) {}
@CallingConvention(CallingConvention.StdCal)]
public string Foo(string parameter) {}

Defined in Island RTL: RemObjects.Elements.System.CallingConventionAttribute.