From ac59693be26b4239aaaf380896a1e1b753172546 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 29 Jan 2009 05:26:12 +0000 Subject: A ton of code formatting fixes; also fixed warnings about single line loops like 'while(cond);' by inserting newlines svn-id: r36127 --- engines/tinsel/coroutine.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/tinsel/coroutine.h') diff --git a/engines/tinsel/coroutine.h b/engines/tinsel/coroutine.h index 30d90970b6..d2c2c21b3a 100644 --- a/engines/tinsel/coroutine.h +++ b/engines/tinsel/coroutine.h @@ -126,7 +126,7 @@ public: /** Stop the currently running coroutine */ #define CORO_KILL_SELF() \ - do { if (&coroParam != &nullContext) { coroParam->_sleep = -1; } return; } while(0) + do { if (&coroParam != &nullContext) { coroParam->_sleep = -1; } return; } while (0) /** Invoke another coroutine */ #define CORO_INVOKE_ARGS(subCoro, ARGS) \ @@ -139,7 +139,7 @@ public: coroParam->_sleep = coroParam->_subctx->_sleep;\ assert(&coroParam != &nullContext);\ return; case __LINE__:;\ - } while(1);\ + } while (1);\ } while (0) #define CORO_INVOKE_ARGS_V(subCoro, RESULT, ARGS) \ do {\ @@ -151,7 +151,7 @@ public: coroParam->_sleep = coroParam->_subctx->_sleep;\ assert(&coroParam != &nullContext);\ return RESULT; case __LINE__:;\ - } while(1);\ + } while (1);\ } while (0) #define CORO_INVOKE_0(subCoroutine) \ -- cgit v1.2.3