Sign in Join
Wiki copytemporary

register: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Register

OldNewLine
1+Back to [[Reserved words|reserved words]]
2+
3+The [[modifier]] **register**:
4+
5+- belongs to the calling conventions of internal and external subroutines;
6+- is for compatibility with Delphi;
7+- has been supported since FPC 1.9.x;
8+- is used to call the first three parameters in the register.
9+
10+Example:
11+
12+``` pascal
13+function subTest: string; [register];
14+begin
15+   subTest: = 'abc';
16+end;
17+```
18+
19+Example 2:
20+
21+``` pascal
22+function funcTest (strTestdaten: Pchar): LongWord; register; external 'Test.dll';
23+```
24+
25+---
26+*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](/wiki-contact).*

Back to history