[PATCH] Only compile ev::now() if EV_MULTIPLICITY is defined.

Leandro Lucarella llucax at gmail.com
Wed Jan 16 14:15:38 CET 2008


Marc Lehmann, el 16 de enero a las 04:20 me escribiste:
> 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 :)

Ups! I did it again...

-- 
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
- is there a perl version of php?...
  cause i have cgi-bin access with perl and want to use php scripts.




More information about the libev mailing list