aboutsummaryrefslogtreecommitdiff
path: root/include/assert.h
diff options
context:
space:
mode:
authorJeroen Ruigrok van der Werven <asmodai@FreeBSD.org>2001-10-24 18:10:37 +0000
committerJeroen Ruigrok van der Werven <asmodai@FreeBSD.org>2001-10-24 18:10:37 +0000
commit8c825c1afdd0a1c1626d5beb86e35f317252d99c (patch)
tree819e092017a25d4a495934d8aa25e580c8880517 /include/assert.h
parentb792b54c899d9d228f4f78e9fdf5285af4b465f0 (diff)
Notes
Diffstat (limited to 'include/assert.h')
-rw-r--r--include/assert.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/assert.h b/include/assert.h
index dff9589972b0..3c3fea2293c1 100644
--- a/include/assert.h
+++ b/include/assert.h
@@ -36,6 +36,7 @@
* SUCH DAMAGE.
*
* @(#)assert.h 8.2 (Berkeley) 1/21/94
+ * $FreeBSD$
*/
/*
@@ -52,14 +53,16 @@
#else
#define _assert(e) assert(e)
#ifdef __STDC__
-#define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e))
+#define assert(e) ((e) ? (void)0 : __assert(__func__, __FILE__, \
+ __LINE__, #e))
#else /* PCC */
-#define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, "e"))
+#define assert(e) ((e) ? (void)0 : __assert(__func__, __FILE__, \
+ __LINE__, "e"))
#endif
#endif
#include <sys/cdefs.h>
__BEGIN_DECLS
-void __assert __P((const char *, int, const char *));
+void __assert(const char *, const char *, int, const char *);
__END_DECLS