RAD Studio |  |

pascal, _pascal, __pascal

Category

Modifiers, Keyword extensions

Syntax

Copy Code

    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.

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