pascal, _pascal, __pascal (C++)
Go Up to Keywords, Alphabetical Listing Index
Category
Modifiers (C++), Keyword Extensions
Syntax
pascal <data-definition/function-definition> ; _pascal <data-definition/function-definition> ; __pascal <data-definition/function-definition> ;
Description
Use the pascal, _pascal, and __pascal keywords to declare a variable or a function using a Pascal-style naming convention (the name is in uppercase).
In addition, pascal declares Delphi language-style parameter-passing conventions when applied to a function header (parameters pushed left to right; the called function cleans up the stack).
In C++ programs, functions declared with the pascal modifier are still mangled.
- Note: The __pascal form is the only one supported by Clang-enhanced C++ compilers.