[UFFI-Users] Re: using uffi.
immanuell at enfocus.be
Mon Aug 1 06:09:59 MDT 2005
Immanuel Litzroth <immanuell at enfocus.be> writes:
> I have been using uffi to write a ffi to portmidi library in
> sbcl/cmucl andI have some questions.
> 1) what is the way to get the address of a stack-allocated foreign
> variable. I have used pointer-address but sbcl gives a type error
> on that.
> (pointer-address obj) -> `(system:sap-int (alien:alien-sap ,obj))
> when i use (alien:alien-sap ,obj) the type error disappears.
I have just answered my first question. If you do a
(with-foreign-object (a type)
a is bound to a pointer to type during the body. I didn't think the
documentation was clear on this point.
More information about the UFFI-Users