Sign in Join
Wiki copytemporary

External: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: External

OldNewLine
1+Back to [[Reserved words]].
2+
3+The **external** modifier:
4+
5+- belongs to the calling conventions for external subroutines (eg dynamically loaded libraries);
6+- allows access to an external subroutine.
7+
8+Examples:
9+
10+``` pascal
11+ ...
12+ function funcTest(strTestData : Pchar) : LongWord; cppdecl; external 'Test.dll';
13+ ...
14+```
15+
16+``` pascal
17+ ...
18+ function funcTest(strTestData : Pchar) : LongWord; cppdecl; external 'test.dylib';
19+ ...
20+```
21+
22+---
23+*From the Free Pascal wiki, page "External", as it stood on 2020-02-14 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](/wiki-contact).*

Back to history