index

Reference: Calling conventions

asCALL_GENERIC
asCALL_CDECL
asCALL_STDCALL
asCALL_THISCALL
asCALL_CDECL_OBJLAST
asCALL_CDECL_OBJFIRST

asCALL_GENERIC

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.

asCALL_CDECL

The function is a global function declared with the __cdecl calling conventions.

asCALL_STDCALL

The function is a global function declared with the __stdcall calling conventions.

asCALL_THISCALL

The function is an object method.

asCALL_CDECL_OBJLAST

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.

asCALL_CDECL_OBJFIRST

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.

top