Revision 5 of 8, by Trev on 9-18-2020. The page as it is now.
Register
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';From the Free Pascal wiki, page "Register", as it stood on 2020-02-25 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.
