_stdcall, __stdcall (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Keywords, Alphabetical Listing Index


Modifiers (C++), Keyword Extensions


__stdcall <function-name>
_stdcall <function-name>


The _stdcall and __stdcall keywords force the compiler to generate function calls using the Standard calling convention. Functions must pass the correct number and type of arguments; this is unlike normal C use, which permits a variable number of function arguments.

Such functions comply with the standard WIN32 argument-passing convention.


The __stdcall modifier is subject to name mangling. See the description of the -VC option for BCC32.EXE.

The __stdcall form is the only one supported by Clang-enhanced C++ compilers.

See Also