pascal

From Free Pascal wiki
Revision as of 07:41, 23 February 2020 by Trev (talk | contribs) (English translation of German page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Deutsch (de) English (en)


Back to Reserved words.


The pascal modifier:

  • belongs to the calling conventions of internal and external subroutines;
  • is used to call a function according to the classic Pascal type calling convention.

Example 1:

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

Example 2:

  function funcTest(strTestData : Pchar) : LongWord; pascal; external 'libTestLibrary.dylib';