[PATCH] Only compile ev::now() if EV_MULTIPLICITY is defined.
Marc Lehmann
schmorp at schmorp.de
Wed Jan 16 04:20:52 CET 2008
On Tue, Jan 15, 2008 at 10:06:32AM -0200, Leandro Lucarella <llucax at gmail.com> wrote:
> Marc Lehmann, el 15 de enero a las 04:13 me escribiste:
> > On Mon, Jan 14, 2008 at 01:35:22PM -0200, Leandro Lucarella <llucax at gmail.com> wrote:
> > > Since ev_now() not available if EV_MULTIPLICITY is not defined, it has not
> > > much sense having a ev::now() that calls an inexistent ev_now() ;)
> >
> > not sure what you mean, ev_now is available regardless of any value for
> > EV_MULTIPLICITY?
>
> I mean, in ev.h says:
> # if EV_MULTIPLICITY
> /* ... */
> ev_tstamp ev_now (EV_P); /* time w.r.t. timers and the eventloop, updated after each poll */
Look at the #else part, ev_now is available nevertheless (my apps use it,
I am quite sure it is there :)
> But in ev++.h there was no conditional compilation for ev::now(), that
> uses ev_now().
And quite correctly so, as ev_now () is supported regardless of
EV_MULTIPLICITY :)
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / pcg at goof.com
-=====/_/_//_/\_,_/ /_/\_\
More information about the libev
mailing list