projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17f3069
)
[project @ 1997-05-26 01:56:37 by sof]
author
sof
<unknown>
Mon, 26 May 1997 01:56:37 +0000
(
01:56
+0000)
committer
sof
<unknown>
Mon, 26 May 1997 01:56:37 +0000
(
01:56
+0000)
New macro: ASSERT2
ghc/compiler/HsVersions.h
patch
|
blob
|
history
diff --git
a/ghc/compiler/HsVersions.h
b/ghc/compiler/HsVersions.h
index
955c5f9
..
55fedfb
100644
(file)
--- a/
ghc/compiler/HsVersions.h
+++ b/
ghc/compiler/HsVersions.h
@@
-14,8
+14,10
@@
you will screw up the layout where they are used in case expressions!
#ifdef DEBUG
#define ASSERT(e) if (not (e)) then (assertPanic __FILE__ __LINE__) else
+#define ASSERT2(e,msg) if (not (e)) then (assertPprPanic __FILE__ __LINE__ (msg)) else
#else
#define ASSERT(e)
+#define ASSERT2(e,msg)
#endif
#if __STDC__