From Free Pascal wiki
Revision as of 08:37, 25 February 2020 by Trev (talk | contribs) (Fixed syntax highlighting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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

Back to reserved words

The modifier register:

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


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

Example 2:

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