Version française
Home     About     Download     Resources     Contact us    
Browse thread
C stubs with many args.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] C stubs with many args.
On Sun, Nov 29, 2009 at 04:31:11PM +0100, Guillaume Yziquel wrote:
> I've been trying to follow section 18.1.2 of:
> 
> 	http://caml.inria.fr/pub/docs/manual-ocaml/manual032.html
> 
> Unfortunately, I'm a bit confused as to what should the CAMLparam and 
> such be for the bytecode stub.
> 
> Could someone provide me with an example somewhere?

In case you still have problems, you could look at the code we
autogenerate in libguestfs, eg: ocaml/guestfs_c_actions.c.  We
generate bindings for functions that have various numbers of arguments
(up to 9).

Rich.

-- 
Richard Jones
Red Hat