asCALL_GENERIC asCALL_CDECL asCALL_STDCALL asCALL_THISCALL asCALL_CDECL_OBJLAST asCALL_CDECL_OBJFIRST
This is a special calling convention that interact more closely with the library. It can be used both for global functions and class methods.
The function signature for this calling convention is void __cdecl func(asIScriptGeneric *gen);
.
When the function is called, it can use the asIScriptGeneric methods to retrieve the arguments, object pointer, and set the return value directly on the context's stack.
The function is a global function declared with the __cdecl calling conventions.
The function is a global function declared with the __stdcall calling conventions.
The function is an object method.
The function is a normal CDecl function that takes a pointer or reference to an object as the last parameter. Using this calling convention applications can register global functions as object methods.
The function is a normal CDecl function that takes a pointer or reference to an object as the first parameter. Using this calling convention applications can register global functions as object methods.