[squeak-dev] Send NULL to a C function trough FFI

Mariano Martinez Peck marianopeck at gmail.com
Wed Sep 17 04:50:27 UTC 2008


Hi everybody!

I need to call a C function with a NULL value in one of the parameter. I
tried to send it a nil but I got an error in FFI when trying to call that
function. The error is: "cannot coerce arguments". Obviously this error says
FFI cannot map from nil to null.

Do someone know how can I do this?

many thanks,

mariano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20080917/ca6a5d8b/attachment.htm


More information about the Squeak-dev mailing list