Difference between revisions of "Register"

From Free Pascal wiki
Jump to navigationJump to search
(I think that it is superfluous to specify authors and translators on wiki pages. Many people can work on same page at different time. But if the nickname is specified, then let it be clear that this is a translator but not an author.)
Line 22: Line 22:
 
<br>
 
<br>
 
<br>
 
<br>
--Translated from German by [[User:Mahdix18|Mahdi18]]
+
--Translated from German by [[User:Mahdix18|Mahdix18]]

Revision as of 02:37, 8 January 2018

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';



--Translated from German by Mahdix18