RAD Studio |  |

cdecl, _cdecl, __cdecl

Category

Modifiers, Keyword extensions

Syntax

Copy Code

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

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

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!