aboutsummaryrefslogtreecommitdiff
path: root/common/coroutines.h
diff options
context:
space:
mode:
authorPaul Gilbert2012-05-13 18:19:40 +1000
committerPaul Gilbert2012-05-17 20:47:02 +1000
commitbd5b65f0071ecb907a8930cff8e91e565b990fb9 (patch)
tree7867de2a125b1f90144fe4731e85621686b9f6af /common/coroutines.h
parent68b0412ce983899eab8dc0ce45debf17da37eba5 (diff)
downloadscummvm-rg350-bd5b65f0071ecb907a8930cff8e91e565b990fb9.tar.gz
scummvm-rg350-bd5b65f0071ecb907a8930cff8e91e565b990fb9.tar.bz2
scummvm-rg350-bd5b65f0071ecb907a8930cff8e91e565b990fb9.zip
COMMON: Fix compilation of coroutines code when COROUTINE_DEBUG is defined
Diffstat (limited to 'common/coroutines.h')
-rw-r--r--common/coroutines.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/coroutines.h b/common/coroutines.h
index 80748e352d..fed82bf3f9 100644
--- a/common/coroutines.h
+++ b/common/coroutines.h
@@ -43,7 +43,7 @@ namespace Common {
// Enable this macro to enable some debugging support in the coroutine code.
-//#define COROUTINE_DEBUG 1
+//#define COROUTINE_DEBUG
/**
* The core of any coroutine context which captures the 'state' of a coroutine.
@@ -53,7 +53,7 @@ struct CoroBaseContext {
int _line;
int _sleep;
CoroBaseContext *_subctx;
-#if COROUTINE_DEBUG
+#ifdef COROUTINE_DEBUG
const char *_funcName;
#endif
CoroBaseContext(const char *func);