[Scummvm-cvs-logs] SF.net SVN: scummvm:[53992] scummvm/trunk/engines/tinsel/coroutine.h
salty-horse at users.sourceforge.net
salty-horse at users.sourceforge.net
Sun Oct 31 23:33:14 CET 2010
Revision: 53992
http://scummvm.svn.sourceforge.net/scummvm/?rev=53992&view=rev
Author: salty-horse
Date: 2010-10-31 22:33:13 +0000 (Sun, 31 Oct 2010)
Log Message:
-----------
TINSEL: Reintroduce DUMMY variable removed in r53932
This placates compilers that complain about the semicolon in
"CORO_BEGIN_CONTEXT;"
Modified Paths:
--------------
scummvm/trunk/engines/tinsel/coroutine.h
Modified: scummvm/trunk/engines/tinsel/coroutine.h
===================================================================
--- scummvm/trunk/engines/tinsel/coroutine.h 2010-10-31 21:50:48 UTC (rev 53991)
+++ scummvm/trunk/engines/tinsel/coroutine.h 2010-10-31 22:33:13 UTC (rev 53992)
@@ -129,10 +129,14 @@
* _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.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list