Register

From Lazarus wiki
Revision as of 17:04, 7 January 2018 by Mahdix18 (talk | contribs) (Created page with "{{register}} <br> Back to the reserved words <br> The modifier <b> register </b> belongs to the calling conventions of internal and external subroutines....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Deutsch (de) English (en) русский (ru)

Back to the reserved words
The modifier register belongs to the calling conventions of internal and external subroutines.
The modifier register is for compatibility with Delphi.
The modifier has been supported since FPC 1.9.x.
The modifier register is used to call the first three parameters in the register.

Example:

function subTest: string; [register];
begin
   subTest: = 'abc';
end;


Example 2:

function funcTest (strTestdaten: Pchar): LongWord; register; external 'Test.dll';