Sign in Join
Wiki copytemporary

Cppdecl: what changed

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

Title: Cppdecl

OldNewLine
1+Back to [[Reserved words]].
2+
3+The cppdecl modifier belongs to the calling conventions for internal and external subroutines.
4+
5+The cppdecl modifier is used to call a function according to the C++ calling convention.
6+
7+**Example 1:**
8+
9+``` pascal
10+function subTest : string; [cppdecl];
11+ begin
12+ subTest := 'abc';
13+ end;
14+```
15+
16+**Example 2:**
17+
18+``` pascal
19+ ...
20+ function funcTest(strTestdaten : Pchar) : LongWord; cppdecl; external 'Test.dll';
21+ ...
22+```
23+
24+---
25+*From the Free Pascal wiki, page "Cppdecl", as it stood on 2020-02-12 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