Wednesday, May 13, 2009

pascal, _pascal, __pascal

Category
Modifiers, C++Builder keyword extensions

Syntax

pascal ;
_pascal ;
__pascal ;

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 Pascal-style parameter-passing conventions when applied to a function header (parameters pushed left ot right; the called function cleans up the stack).
In C++ programs, functions declared with the pascal modifer will still be mangled.

No comments:

Post a Comment