External

From Free Pascal wiki
Jump to navigationJump to search

Deutsch (de) English (en)


Back to Reserved words.


The external modifier:

  • belongs to the calling conventions for external subroutines (eg dynamically loaded libraries);
  • allows access to an external subroutine.


Examples:

  ...
   function funcTest(strTestData : Pchar) : LongWord; cppdecl; external 'Test.dll';
  ...
  ...
   function funcTest(strTestData : Pchar) : LongWord; cppdecl; external 'test.dylib';
  ...