pascal

From Free Pascal wiki
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';