Sign in Join
Wiki copytemporary

Revision 1 of 2, by Trev on 2-25-2020. The page as it is now.

Register/ru


Вернуться к списку зарезервированных слов

Модификатор <b> register </b> относится к соглашениям о вызове внутренних и внешних подпрограмм.
Модификатор <b> register </b> присутствует для совместимости с Delphi.
Модификатор <b> register </b> поддерживается в компиляторе FPC начиная с версии 1.9.x.
Модификатор <b> register </b> используется для передачи первых трех параметров в вызываемую функцию через регистры процессора.

Пример №1:\

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


Пример №2:\

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

From the Free Pascal wiki, page "Register/ru", 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.