CallingConvention

Overview

Enum used in the CallingConvention Attribute to specific the Calling convention for this method.

Location

Value Description
Cdecl Cdecl is the default calling convention used on C
Default Default calling convention (same as Cdecl on all current platforms)
FastCall FastCall calling convention, uses registers for parameter passing on Windows/i386, ignored on all other platforms.
Register
Safecall
Stdcall stdcall calling convention, the default for all Windows APIs, same as cdecl except that the callee cleans up instead of the caller. Ignored unsupported platforms.
Swift Swift calling convention; this uses the SwfitABI calling convention.