… | |
… | |
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 () |
… | |
… | |
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 | |