From ed8bfb00b97ee561632a6d814d1ba587ed47ae22 Mon Sep 17 00:00:00 2001 From: Ori Avtalion Date: Sun, 31 Oct 2010 22:33:13 +0000 Subject: TINSEL: Reintroduce DUMMY variable removed in r53932 This placates compilers that complain about the semicolon in "CORO_BEGIN_CONTEXT;" svn-id: r53992 --- engines/tinsel/coroutine.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/tinsel') 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. -- cgit v1.2.3