Cdecl/de
Zurück zu den reservierten Wörtern.
Der Modifier cdecl gehört zu den Aufrufkonventionen von internen und externen Unterprogrammen.
Der Modifier cdecl wird dazu verwendet um eine Funktion nach der C-Typaufrufkonvention aufzurufen.
Beispiel 1:
function subTest: string; [cdecl];
begin
subTest := 'abc';
end;Beispiel 2:
...
function funcTest(strTestdaten: Pchar) : LongWord; cdecl; external 'Test.dll';
...From the Free Pascal wiki, page "Cdecl/de", as it stood on 2020-02-10 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.