◄Up► ◄Contents► ◄Index► ◄Back► ─────C/C++ Language───────────────────────────────────────────────────────── Keyword: __cdecl Syntax: __cdecl declarator Summary: Instructs the compiler to use the C naming and calling conventions for the variable or function. In the C naming convention, the compiler adds an underscore to the beginning of a name and maintains case-sensitivity. In the C calling convention, function arguments are pushed from right to left. Place the __cdecl modifier before a variable or a function name; it can appear before or after the __near and __far modifiers. Because the C naming and calling conventions are the default, the only time you need to use __cdecl is when you've specified the /Gc (Pascal/FORTRAN) or the /Gr (fastcall) compiler options. For compatibility with previous versions, both cdecl and _cdecl are synonyms for __cdecl. See also: __fastcall, __fortran, __pascal -♦-