Version française
Home     About     Download     Resources     Contact us    
Browse thread
question about the OCaml/C interface
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Markus Mottl <markus.mottl@g...>
Subject: Re: [Caml-list] question about the OCaml/C interface
On 5/9/07, Jean-Marc EBER <jeanmarc.eber@lexifi.com> wrote:
> Is the following code "correct":
>
> CAMLprim value my_func(...)
> {
>    CAMLlocal2(ret);

There should be a CAMLparam0() on entry, otherwise the code seems correct to me.

Regards,
Markus

-- 
Markus Mottl        http://www.ocaml.info        markus.mottl@gmail.com