Skip to content
Snippets Groups Projects
Commit 235375f6 authored by Martine Lenders's avatar Martine Lenders
Browse files

native: always assert() verbosely

parent 4fbe9b1d
No related branches found
No related tags found
No related merge requests found
...@@ -124,6 +124,8 @@ all-asan: export LINKFLAGS += -fsanitize=address -fno-omit-frame-pointer -g ...@@ -124,6 +124,8 @@ all-asan: export LINKFLAGS += -fsanitize=address -fno-omit-frame-pointer -g
export INCLUDES += $(NATIVEINCLUDES) export INCLUDES += $(NATIVEINCLUDES)
export CFLAGS += -DDEBUG_ASSERT_VERBOSE
# workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52624 # workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52624
ifneq ($(shell gcc --version | head -1 | grep -E ' (4.6|4.7)'),) ifneq ($(shell gcc --version | head -1 | grep -E ' (4.6|4.7)'),)
export CFLAGS += -DHAVE_NO_BUILTIN_BSWAP16 export CFLAGS += -DHAVE_NO_BUILTIN_BSWAP16
......
...@@ -46,6 +46,10 @@ extern "C" { ...@@ -46,6 +46,10 @@ extern "C" {
#define DEBUG_ASSERT_VERBOSE #define DEBUG_ASSERT_VERBOSE
#endif #endif
#ifndef RIOT_FILE_RELATIVE
#define RIOT_FILE_RELATIVE (__FILE__)
#endif
/** /**
* @brief the string that is passed to panic in case of a failing assertion * @brief the string that is passed to panic in case of a failing assertion
*/ */
......
...@@ -2016,7 +2016,8 @@ PREDEFINED = DOXYGEN \ ...@@ -2016,7 +2016,8 @@ PREDEFINED = DOXYGEN \
MODULE_GNRC_SIXLOWPAN \ MODULE_GNRC_SIXLOWPAN \
MODULE_GNRC_SIXLOWPAN_ND_ROUTER \ MODULE_GNRC_SIXLOWPAN_ND_ROUTER \
MODULE_GNRC_SIXLOWPAN_ND_BORDER_ROUTER \ MODULE_GNRC_SIXLOWPAN_ND_BORDER_ROUTER \
MODULE_GNRC_UDP MODULE_GNRC_UDP \
RIOT_FILE_RELATIVE
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment