On Sat, Oct 01, 2011 at 02:12:21PM -0700, Ryan Bullock <[email protected]> 
wrote:
> I am attempting to use EV/libev from Inline::C in an attempt to use
> direct callbacks to C functions for a few performance critical
> portions of a project I am working on.

Bad idea - Inline::C is rather windowsish and ports badly to other
platforms, and I am sure you will run into more problems.

> Would anyone mind taking a look at it and telling me where I am going
> wrong? Or is what I am attempting just not possible?

You need to initialise the EV API (EV::MakeMaker has the code for that,
specifically, see the BOOT: block, i.e. I_EV_API ("YourModule")) in your
namespace.

I don't know how to port BOOT blocks to Inline::C, but basically, you have
to make sure you execute the boot code in every .c file where you use the
EV api.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      [email protected]
      -=====/_/_//_/\_,_/ /_/\_\

_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to