Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] c-interface question...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: David Baelde <David.Baelde@e...>
Subject: Re: [Caml-list] c-interface question...

 I'm not an expert, but I can quote the tutorial.
 Here is their code for a unit -> window bound function.

value curses_initscr(value unit)
{
  CAMLparam1 (unit);
  CAMLreturn ((value) initscr()); 
}

 That's why I use CAMLprim f (value unit) { CAMLreturn(Val_unit) }

--
        David Baelde
	Etudiant en Info à l'ENS Lyon
        _______
   .^.   O
   /V\ .°
  // \\
 /(   )\
  ^^-^^