X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FHsVersions.h;h=0bd9c142c4a42a0e9eb8cd86aa9d28393cf758ff;hb=423d477bfecd490de1449c59325c8776f91d7aac;hp=ff6e5ae1867c398b4da939a547b9246428d6cb6a;hpb=550421384b8364cdaf3135f7859c9f7d7ee1fff1;p=ghc-hetmet.git diff --git a/ghc/compiler/HsVersions.h b/ghc/compiler/HsVersions.h index ff6e5ae..0bd9c14 100644 --- a/ghc/compiler/HsVersions.h +++ b/ghc/compiler/HsVersions.h @@ -66,10 +66,10 @@ name = Util.global (value) :: IORef (ty); \ #define WARN( e, msg ) (warnPprTrace (e) __FILE__ __LINE__ (msg)) #define ASSERTM(e) ASSERT(e) do #else -#define ASSERT(e) -#define ASSERT2(e,msg) +#define ASSERT(e) if False then error "ASSERT" else +#define ASSERT2(e,msg) if False then error "ASSERT2" else #define ASSERTM(e) -#define WARN(e,msg) +#define WARN(e,msg) if False then error "WARN" else #endif -- temporary usage assertion control KSW 2000-10 @@ -91,4 +91,5 @@ import qualified FastString #define SLIT(x) (FastString.mkLitString# (x#)) #define FSLIT(x) (FastString.mkFastString# (x#)) -#endif // HSVERSIONS_H +#endif /* HsVersions.h */ +