Browse thread
C interface style question
-
Thomas Fischbacher
-
Gerd Stolpmann
- Florent Monnier
- Jacques Garrigue
-
Gerd Stolpmann
[
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: | Florent Monnier <fmonnier@l...> |
| Subject: | Re: [Caml-list] C interface style question |
> > value-type parameters to C functions exported to OCaml should be > > registered with CAMLparamX(...). Does this hold in general, or is it > > considered acceptable/appropriate to just ignore this for "immediate" > > values that do not hold pointers, but, say, int, bool etc. values? > > If you don't allocate O'Caml memory you need not to register the > parameters. And in this case there's no need to use CAMLreturn(), return is enough, is it right ? --