ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev++.h
(Generate patch)

Comparing libev/ev++.h (file contents):
Revision 1.32 by root, Sat Jan 19 00:49:06 2008 UTC vs.
Revision 1.35 by llucax, Tue Jan 22 17:57:17 2008 UTC

131#endif 131#endif
132 132
133 struct loop_ref 133 struct loop_ref
134 { 134 {
135 135
136 loop_ref (EV_P) throw (bad_loop) 136 loop_ref (EV_P)
137#if EV_MULTIPLICITY 137#if EV_MULTIPLICITY
138 : EV_AX (EV_A) 138 throw (bad_loop) : EV_AX (EV_A)
139#endif
140 { 139 {
141#if EV_MULTIPLICITY
142 if (!EV_AX) 140 if (!EV_AX)
143 throw bad_loop (); 141 throw bad_loop ();
144#endif 142 }
143#else
144 throw ()
145 } 145 {
146 }
147#endif
146 148
147 bool operator == (const loop_ref &other) const throw () 149 bool operator == (const loop_ref &other) const throw ()
148 { 150 {
149#if EV_MULTIPLICITY 151#if EV_MULTIPLICITY
150 return EV_AX == other.EV_AX; 152 return EV_AX == other.EV_AX;
345 347
346#if EV_MULTIPLICITY 348#if EV_MULTIPLICITY
347 struct dynamic_loop: loop_ref 349 struct dynamic_loop: loop_ref
348 { 350 {
349 351
350 dynamic_loop (unsigned int flags = AUTO) EV_THROW (bad_loop) 352 dynamic_loop (unsigned int flags = AUTO) throw (bad_loop)
351 : loop_ref (ev_loop_new (flags)) 353 : loop_ref (ev_loop_new (flags))
352 { 354 {
353 } 355 }
354 356
355 ~dynamic_loop () throw () 357 ~dynamic_loop () throw ()
373 default_loop (unsigned int flags = AUTO) throw (bad_loop) 375 default_loop (unsigned int flags = AUTO) throw (bad_loop)
374#if EV_MULTIPLICITY 376#if EV_MULTIPLICITY
375 : loop_ref (ev_default_loop (flags)) 377 : loop_ref (ev_default_loop (flags))
376#endif 378#endif
377 { 379 {
378#ifndef EV_MULTIPLICITY 380#if !EV_MULTIPLICITY
379 if (!ev_default_loop (flags)) 381 if (!ev_default_loop (flags))
380 throw bad_loop (); 382 throw bad_loop ();
381#endif 383#endif
382 } 384 }
383 385
774 #undef EV_BEGIN_WATCHER 776 #undef EV_BEGIN_WATCHER
775 #undef EV_END_WATCHER 777 #undef EV_END_WATCHER
776 778
777} 779}
778 780
779#undef EV_THROW
780
781#endif 781#endif
782 782

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines