[Ecls-list] How to wrap and return constant pointers with c-inline?

Dietrich Bollmann dietrich at formgames.org
Sun Jul 7 11:52:25 UTC 2013


How can I wrap and return the constant pointer

  const CRhinoCommandContext *context;

with c-inline?

Using something like

  (ffi:c-inline () () :pointer-void "context" :one-liner t)

results in the error

  error C2664: 'ecl_make_foreign_data' : cannot convert parameter 3 from
'const CRhinoCommandContext *' to 'void *'
        Conversion loses qualifiers

But I couldn't find something like :const-pointer-void...

How can I solve this problem?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20130707/a07a89c8/attachment.html>

More information about the ecl-devel mailing list