need help with ffi function pointers
Fergus Henderson
fjh at cs.mu.OZ.AU
Sun Mar 2 06:46:07 EST 2003
On 02-Mar-2003, Wolfgang Thaller <wolfgang.thaller at gmx.net> wrote:
> >I have a C function:
> >
> >f_setCallback( void (funptr*) () );
That is a very bad design.
You should change the interface of your C function to
f_setCallback( void (funptr*) (void *), void * );
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
More information about the FFI
mailing list