summaryrefslogtreecommitdiff
path: root/ev++.h
diff options
context:
space:
mode:
authorroot <root>2008-01-22 18:09:23 +0000
committerroot <root>2008-01-22 18:09:23 +0000
commit66b451751514fa881505e9465cdd8e9484fef65d (patch)
tree1dc6f59900e71864b2ae17ccdd66fac6e577def8 /ev++.h
parent5e5fd815684ffa44dc9eb07db30ccaed8532f117 (diff)
indent, don't throw in loop_ref, make urxvt compile again
Diffstat (limited to 'ev++.h')
-rw-r--r--ev++.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/ev++.h b/ev++.h
index 5c0693d..cd9160a 100644
--- a/ev++.h
+++ b/ev++.h
@@ -133,18 +133,12 @@ namespace ev {
struct loop_ref
{
- loop_ref (EV_P)
+ loop_ref (EV_P) throw ()
#if EV_MULTIPLICITY
- throw (bad_loop) : EV_AX (EV_A)
- {
- if (!EV_AX)
- throw bad_loop ();
- }
-#else
- throw ()
+ : EV_AX (EV_A)
+#endif
{
}
-#endif
bool operator == (const loop_ref &other) const throw ()
{
@@ -346,12 +340,14 @@ namespace ev {
};
#if EV_MULTIPLICITY
- struct dynamic_loop: loop_ref
+ struct dynamic_loop : loop_ref
{
dynamic_loop (unsigned int flags = AUTO) throw (bad_loop)
- : loop_ref (ev_loop_new (flags))
+ : loop_ref (ev_loop_new (flags))
{
+ if (!EV_AX)
+ throw bad_loop ();
}
~dynamic_loop () throw ()
@@ -369,7 +365,7 @@ namespace ev {
};
#endif
- struct default_loop: loop_ref
+ struct default_loop : loop_ref
{
default_loop (unsigned int flags = AUTO) throw (bad_loop)
@@ -377,10 +373,14 @@ namespace ev {
: loop_ref (ev_default_loop (flags))
#endif
{
-#if !EV_MULTIPLICITY
- if (!ev_default_loop (flags))
- throw bad_loop ();
+ if (
+#if EV_MULTIPLICITY
+ !EV_AX
+#else
+ !ev_default_loop (flags)
#endif
+ )
+ throw bad_loop ();
}
~default_loop () throw ()