Browse thread
CAMLreturn does not work for floats between 0 and 1 ?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Matthieu Dubuget <matthieu.dubuget@g...> |
| Subject: | Re: [Caml-list] CAMLreturn does not work for floats between 0 and 1 ? |
Daniel Bünzli a écrit : > > Le 16 févr. 07 à 15:46, Matthieu Dubuget a écrit : > >> I'm sure I'm doing something bad. But I can't find out where? > > CAMLreturn and CAMLparam0 macros are used in functions that are called > from ocaml land and return a value in ocaml land. You should not use > them for your functions called in C land and returning a value in C > land (see section 18.7.2 of the manual). OK. Thanks. But this is not all clear for me. Suppose that I have to construct one or more value(s) to pass them to OCaml land. I do have to use CAMLlocal macros for that, don't I. Can use them without CAMLparam and CAMLreturn macros? Salutations Matt