aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel
diff options
context:
space:
mode:
authorOri Avtalion2010-10-31 22:33:13 +0000
committerOri Avtalion2010-10-31 22:33:13 +0000
commited8bfb00b97ee561632a6d814d1ba587ed47ae22 (patch)
treeb85ba811de193dad18aa34a7de4f34182582d6af /engines/tinsel
parent5c49ae8a9c86fcab1ca7a28111517757e3b2c2ee (diff)
downloadscummvm-rg350-ed8bfb00b97ee561632a6d814d1ba587ed47ae22.tar.gz
scummvm-rg350-ed8bfb00b97ee561632a6d814d1ba587ed47ae22.tar.bz2
scummvm-rg350-ed8bfb00b97ee561632a6d814d1ba587ed47ae22.zip
TINSEL: Reintroduce DUMMY variable removed in r53932
This placates compilers that complain about the semicolon in "CORO_BEGIN_CONTEXT;" svn-id: r53992
Diffstat (limited to 'engines/tinsel')
-rw-r--r--engines/tinsel/coroutine.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/tinsel/coroutine.h b/engines/tinsel/coroutine.h
index c8b220b212..82bc2c4cca 100644
--- a/engines/tinsel/coroutine.h
+++ b/engines/tinsel/coroutine.h
@@ -129,10 +129,14 @@ public:
* _ctx->var = 0;
*
* @see CORO_END_CONTEXT
+ *
+ * @note We declare a variable 'DUMMY' to allow the user to specify an 'empty'
+ * context, and so compilers won't complain about ";" following the macro.
*/
#define CORO_BEGIN_CONTEXT \
struct CoroContextTag : CoroBaseContext { \
CoroContextTag() : CoroBaseContext(SCUMMVM_CURRENT_FUNCTION) {} \
+ int DUMMY
/**
* End the declaration of a coroutine context.