Ccall

From Clean
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