summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-08-25 13:08:10 +0000
committerIan Lynagh <igloo@earth.li>2007-08-25 13:08:10 +0000
commita8b5e840ebb42522992749eb9afd1a9ba870d234 (patch)
tree38ba47512e065a74365d506b927d54140a7e07a0 /includes
parent0b9530245a33b8206ca38b9de6dfb01e056fd8dc (diff)
downloadhaskell-a8b5e840ebb42522992749eb9afd1a9ba870d234.tar.gz
Fix the IF_DEBUG(interpreter in StgCRun.c
Diffstat (limited to 'includes')
-rw-r--r--includes/Rts.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/Rts.h b/includes/Rts.h
index eba8146fd2..df8cb46900 100644
--- a/includes/Rts.h
+++ b/includes/Rts.h
@@ -258,7 +258,11 @@ TICK_VAR(2)
-------------------------------------------------------------------------- */
#ifdef DEBUG
+#if IN_STG_CODE
+#define IF_DEBUG(c,s) if (RtsFlags[0].DebugFlags.c) { s; }
+#else
#define IF_DEBUG(c,s) if (RtsFlags.DebugFlags.c) { s; }
+#endif
#else
#define IF_DEBUG(c,s) doNothing()
#endif