conventions

Calling-convention descriptor objects used in function import and export descriptors. The module exports cdecl and stdcall. Each descriptor is one object whose public field CALL holds the calling-convention text.


Descriptor objects


cdecl

Descriptor object for the C declaration calling convention.


stdcall

Descriptor object for the standard-call calling convention.


CALL text selection


Descriptor use


Examples

One descriptor in a callable declaration

"conventions" use
"String" use
"control" use

addOne: {value: Int32;} Int32 {convention: cdecl;} codeRef;
[1 +] !addOne

{} Int32 {} [
  ("result=" 41 addOne LF) printList
  0
] "main" exportFunction

Expected Output

result=42

See also