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)

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