summaryrefslogtreecommitdiff
path: root/gcc/fixinc/tests/base/assert.h
diff options
context:
space:
mode:
authorkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-02 05:18:08 +0000
committerkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-02 05:18:08 +0000
commit2bfb2bb31d2157622ce082e80ebb7c5d8e88a8cd (patch)
tree1c00aac1aa5084d22218550c3892a0be328e3570 /gcc/fixinc/tests/base/assert.h
parent5aaff9bc7602f82e2dda6993c9dbc7cb68d0ff83 (diff)
downloadgcc-2bfb2bb31d2157622ce082e80ebb7c5d8e88a8cd.tar.gz
sync mainline to 3.1
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53034 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc/tests/base/assert.h')
-rw-r--r--gcc/fixinc/tests/base/assert.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/fixinc/tests/base/assert.h b/gcc/fixinc/tests/base/assert.h
index 45716a3b303..5140e892e3c 100644
--- a/gcc/fixinc/tests/base/assert.h
+++ b/gcc/fixinc/tests/base/assert.h
@@ -24,6 +24,11 @@ extern void __assert(const char *, const char *, int);
#endif /* ALPHA___ASSERT_CHECK */
+#if defined( ALPHA_ASSERT_CHECK )
+#define assert(EX) ((EX) ? (void)0 : __assert(#EX, __FILE__, __LINE__))
+#endif /* ALPHA_ASSERT_CHECK */
+
+
#if defined( BROKEN_ASSERT_STDIO_CHECK )
extern FILE* stderr;
#endif /* BROKEN_ASSERT_STDIO_CHECK */