[MLton] FFI: C void *

Stephen Weeks MLton@mlton.org
Tue, 13 Jan 2004 22:51:37 -0800


The correct way to import the C function

> Pointer mlton_glut_stroke_roman(void)
> {
>   return ((Pointer) GLUT_STROKE_ROMAN);
> }

is

val GLUT_STROKE_ROMAN = 
   _import "mlton_glut_stroke_roman" : unit -> MLton.Pointer.t;