summaryrefslogtreecommitdiff
path: root/kern/assert.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/assert.h')
-rw-r--r--kern/assert.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/kern/assert.h b/kern/assert.h
index 7b66d1b1..73e2a176 100644
--- a/kern/assert.h
+++ b/kern/assert.h
@@ -36,12 +36,13 @@
#endif
#if MACH_ASSERT
-extern void Assert(const char *exp, const char *filename, int line) __attribute__ ((noreturn));
+extern void Assert(const char *exp, const char *filename, int line,
+ const char *fun) __attribute__ ((noreturn));
#define assert(ex) \
((ex) \
? (void) (0) \
- : Assert (#ex, __FILE__, __LINE__))
+ : Assert (#ex, __FILE__, __LINE__, __FUNCTION__))
#define assert_static(x) assert(x)