Skip to content
Snippets Groups Projects
Commit 7d93471e authored by Axel Heider's avatar Axel Heider Committed by Indan Zupancic
Browse files

debug: use c99 standard instead of gcc extensions


Signed-off-by: default avatarAxel Heider <axelheider@gmx.de>
parent 7dbdbee0
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ void _assert_fail(
#define assert(expr) \
do { \
if (!(expr)) { \
_assert_fail(#expr, __FILE__, __LINE__, __FUNCTION__); \
_assert_fail(#expr, __FILE__, __LINE__, __func__); \
} \
} while(0)
......
......@@ -32,7 +32,7 @@ void __assert_fail(const char *str, const char *file, int line, const char *fun
* expr as a string plus the file, line and function.
*/
#define seL4_Assert(expr) \
do { if (!(expr)) { __assert_fail(#expr, __FILE__, __LINE__, __FUNCTION__); } } while(0)
do { if (!(expr)) { __assert_fail(#expr, __FILE__, __LINE__, __func__); } } while(0)
/**
* An assert that tests that the expr is a compile time constant and
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment