diff options
author | Ian Lynagh <igloo@earth.li> | 2007-08-25 13:08:10 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2007-08-25 13:08:10 +0000 |
commit | a8b5e840ebb42522992749eb9afd1a9ba870d234 (patch) | |
tree | 38ba47512e065a74365d506b927d54140a7e07a0 /includes | |
parent | 0b9530245a33b8206ca38b9de6dfb01e056fd8dc (diff) | |
download | haskell-a8b5e840ebb42522992749eb9afd1a9ba870d234.tar.gz |
Fix the IF_DEBUG(interpreter in StgCRun.c
Diffstat (limited to 'includes')
-rw-r--r-- | includes/Rts.h | 4 |
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 |