summaryrefslogtreecommitdiff
path: root/assert
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1992-05-22 07:50:36 +0000
committerRoland McGrath <roland@gnu.org>1992-05-22 07:50:36 +0000
commitba029a3decad62462adb54f4066aa4600a92f58f (patch)
treeaa143406ed3af83bbd4ae8260f3e1edcbf1666d3 /assert
parent3edf48f2f611f2687dcb5f8eacd0a1dbbcaed91e (diff)
Formerly assert.h.~5~
Diffstat (limited to 'assert')
-rw-r--r--assert/assert.h37
1 files changed, 11 insertions, 26 deletions
diff --git a/assert/assert.h b/assert/assert.h
index a54d074345..ca7ff0d005 100644
--- a/assert/assert.h
+++ b/assert/assert.h
@@ -13,7 +13,7 @@ Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the GNU C Library; see the file COPYING.LIB. If
-not, write to the Free Software Foundation, Inc., 675 Mass Ave,
+not, write to the, 1992 Free Software Foundation, Inc., 675 Mass Ave,
Cambridge, MA 02139, USA. */
/*
@@ -24,16 +24,13 @@ Cambridge, MA 02139, USA. */
#undef _ASSERT_H
#undef assert
-#undef __assert_quotearg
-#endif /* assert.h */
+#endif /* assert.h */
#define _ASSERT_H 1
#include <features.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
+__BEGIN_DECLS
/* void assert(int expression);
If NDEBUG is defined, do nothing.
@@ -43,30 +40,18 @@ extern "C" {
#define assert(expr) ((void) 0)
-#else /* Not NDEBUG. */
+#else /* Not NDEBUG. */
/* This prints an "Assertion failed" message and aborts. */
-extern int EXFUN(__assert_fail, (CONST char *__assertion,
- CONST char *__file, unsigned int __line));
-
-/* IGNORE($ */
-#ifdef __STDC__
-/* $) IFANSI($ */
-#define __assert_quotearg(s) #s
-/* $) IGNORE($ */
-#else /* Not ANSI C. */
-/* $) IFTRAD($ */
-#define __assert_quotearg(s) "s"
-/* $) IGNORE($ */
-#endif /* ANSI C. */
-/* $) */
+extern int __assert_fail __P ((__const char *__assertion,
+ __const char *__file, unsigned int __line));
+
+#include <sys/cdefs.h>
#define assert(expr) \
((void) ((expr) || \
- __assert_fail(__assert_quotearg(expr), __FILE__, __LINE__)))
+ __assert_fail (__STRING(expr), __FILE__, __LINE__)))
-#endif /* NDEBUG. */
+#endif /* NDEBUG. */
-#ifdef __cplusplus
-}
-#endif
+__END_DECLS