summaryrefslogtreecommitdiff
path: root/lib/zassert.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2021-02-21 05:48:48 +0100
committerDavid Lamparter <equinox@diac24.net>2021-03-17 06:18:17 +0100
commit15c05f1edf079bc03b277e44426a8af8616bb10b (patch)
tree07eba7a6ffc9e4c1caaabbb572632bd921082dc6 /lib/zassert.h
parent247c7e27a9928bd54e336590c526da68d4c79ff1 (diff)
*: require ISO C11 (or C++11)
It's 2021... time to drop some 10yo compat stuff. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/zassert.h')
-rw-r--r--lib/zassert.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/zassert.h b/lib/zassert.h
index e6b254ee8d..527282c4f2 100644
--- a/lib/zassert.h
+++ b/lib/zassert.h
@@ -28,14 +28,7 @@ extern void _zlog_assert_failed(const char *assertion, const char *file,
__attribute__((noreturn));
#undef __ASSERT_FUNCTION
-
-#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#define __ASSERT_FUNCTION __func__
-#elif defined(__GNUC__)
-#define __ASSERT_FUNCTION __FUNCTION__
-#else
-#define __ASSERT_FUNCTION NULL
-#endif
#define zassert(EX) \
((void)((EX) ? 0 : (_zlog_assert_failed(#EX, __FILE__, __LINE__, \