X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FHsVersions.h;h=464bf820297d5b74ba15697b8b159aff9ddca20c;hb=2069911cfbc3d31dfdb34845b3fe17ab7b770aa6;hp=a53fb4bf35fa410a8afa59c570ddddcb5af53966;hpb=f8c52d7fde2d7408b4f734251c373f8d3e2c558e;p=ghc-hetmet.git diff --git a/compiler/HsVersions.h b/compiler/HsVersions.h index a53fb4b..464bf82 100644 --- a/compiler/HsVersions.h +++ b/compiler/HsVersions.h @@ -37,12 +37,14 @@ name = Util.global (value) :: IORef (ty); \ #define COMMA , #ifdef DEBUG +#define debugIsOn True #define ASSERT(e) if (not (e)) then (assertPanic __FILE__ __LINE__) else #define ASSERT2(e,msg) if (not (e)) then (assertPprPanic __FILE__ __LINE__ (msg)) else #define WARN( e, msg ) (warnPprTrace (e) __FILE__ __LINE__ (msg)) #define ASSERTM(mbool) do { bool <- mbool; ASSERT(bool) return () } #define ASSERTM2(mbool,msg) do { bool <- mbool; ASSERT2(bool,msg) return () } #else +#define debugIsOn False -- We have to actually use all the variables we are given or we may get -- unused variable warnings when DEBUG is off. #define ASSERT(e) if False && (not (e)) then panic "ASSERT" else