TINSEL: Reintroduce DUMMY variable removed in r53932
This placates compilers that complain about the semicolon in "CORO_BEGIN_CONTEXT;" svn-id: r53992
This commit is contained in:
parent
5c49ae8a9c
commit
ed8bfb00b9
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue