cdecl, _cdecl, __cdecl (C++)

From Appmethod Topics
Jump to: navigation, search

Go Up to Keywords, Alphabetical Listing Index


Modifiers, Keyword Extensions


cdecl <data/function definition> ;
_cdecl <data/function definition> ;
__cdecl <data/function definition> ;


Use a cdecl, _cdecl, or __cdecl modifier to declare a variable or a function using the C-style naming conventions (case-sensitive, with a leading underscore appended). When you use cdecl, _cdecl, or __cdecl in front of a function, it affects how the parameters are passed (parameters are pushed right to left, and the caller cleans up the stack). The __cdecl modifier overrides the compiler directives and IDE options.

The cdecl, _cdecl, and __cdecl keywords are specific to Appmethod C++.

Note: The __cdecl form is the only one supported by Appmethod C++ 64-bit Windows (BCC64).