Tuesday, May 26, 2009

cdecl, _cdecl, __cdecl

Category

Modifiers, C++Builder keyword extensions

Syntax

cdecl ;

_cdecl
;

__cdecl ;

Description


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 C++Builder.

No comments:

Post a Comment