Ccall

From Clean
Revision as of 20:28, 9 April 2009 by Bas Lijnse (talk | contribs) (Started reference docs for ccall)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

To call foreign functions in Clean you need to make use of the "ccall" abc instruction. This ccall abc construction calls the foreign function with the parameters on the stack.

Ccall format cheatsheet

  • I : Int
  • A : Array
  • V : Tuple
  • R : Real
  • s : String