summaryrefslogtreecommitdiff
path: root/include/assert.h
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2009-10-17 02:04:20 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-11-19 22:40:03 +0100
commit5f37f10508892a4180a1934764dfeb7ce0b1ff19 (patch)
tree622ec4609e72fd97b8ac6de5d16256e0a57daf09 /include/assert.h
parentefe75b58fd43743d84fd74eac8a0e1d6edcc430c (diff)
assert: make linenumber unsigned
Move attribute_noreturn to header. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include/assert.h')
-rw-r--r--include/assert.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/assert.h b/include/assert.h
index 439179d8d..40b16059b 100644
--- a/include/assert.h
+++ b/include/assert.h
@@ -51,15 +51,15 @@
__BEGIN_DECLS
/* This prints an "Assertion failed" message and aborts. */
-extern void __assert __P((const char *, const char *, int, const char *));
+extern void __assert(const char *, const char *, unsigned int, const char *)
+ __THROW __attribute__ ((__noreturn__));
libc_hidden_proto(__assert)
__END_DECLS
# define assert(expr) \
- (__ASSERT_VOID_CAST ((expr) ? 0 : \
- (__assert (__STRING(expr), __FILE__, __LINE__, \
- __ASSERT_FUNCTION), 0)))
+ (__ASSERT_VOID_CAST ((expr) ? 0 : \
+ (__assert (__STRING(expr), __FILE__, __LINE__, __ASSERT_FUNCTION), 0)))
/* Version 2.4 and later of GCC define a magical variable `__PRETTY_FUNCTION__'
which contains the name of the function currently being defined.