Daniel Turing a écrit :
Hi Nicolas,

as you suggested, i now use a context lock to make some of my destructors 
typesafe. it works great on linux, i define the relevant functions in my own 
header file like this:
        typedef struct _clock _clock;
        _clock *context_lock_new();
        void context_lock( _clock *l );
        void context_release( _clock *l );
        void context_lock_delete( _clock *l );

You can #include <context.h> as well

now, when trying to link to neko.dll for windows32, the compiler complains 
about those symbols being missing...? with neko 1.7.0, that is.

Yes, actually in current CVS these symbols are not part of the Neko DLL, they are not exported, so you'll have include context.c in your sources as well.

Since it's actually quite useful primitives, I might move them to neko.h and export these symbols as you suggest in future neko release.

Best,
Nicolas


--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to