UDF Calling Conventions
Go Up to Writing a UDF
The calling convention determines how a function is called and how the parameters are passed. The called function must match the calling convention of the caller function. InterBase uses the CDECL
calling convention, so all UDFs must use the same calling convention.
Note that the situation is different for calls to APIs. On UNIX, InterBase uses CDECL
for all API calls. On Windows platforms InterBase uses STDCALL
for all functions that have a fixed number of arguments and CDECL
for functions that have a variable number of arguments. See “Programming with the InterBase API” in the API Guide for a list of these functions.