On Thu, 11 Jul 2013 20:26:11 +0900
Dietrich Bollmann <dietr...@formgames.org> wrote:

> I want to wrap a pointer to a C++ constant into a lisp constant.
> 
> The following
> 
>   (defconstant +xy-plane+
>     (ffi:c-inline () () :pointer-void "(void *) &ON_xy_plane" :one-liner t))
> 
> results in this error:
[...]
> 
> But this - at least to me - looks kind of unnecessarily cumbersome...
> 
> Is there a better way to wrap a pointer to a constant from lisp?

It's necessary to wrap those DEFCONSTANT inside a LET block so they are
no longer top-level, see how contrib/sockets/sockets.lisp in the ECL
source tree does it for instance.
-- 
Matt

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list

Reply via email to