Register

From Free Pascal wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.

Example:

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

Example 2:

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