1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

native: always assert() verbosely

This commit is contained in:
Martine Lenders 2016-11-18 13:40:47 +01:00 committed by Martine Lenders
parent 4fbe9b1d11
commit 235375f664
3 changed files with 8 additions and 1 deletions

View File

@ -124,6 +124,8 @@ all-asan: export LINKFLAGS += -fsanitize=address -fno-omit-frame-pointer -g
export INCLUDES += $(NATIVEINCLUDES)
export CFLAGS += -DDEBUG_ASSERT_VERBOSE
# workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52624
ifneq ($(shell gcc --version | head -1 | grep -E ' (4.6|4.7)'),)
export CFLAGS += -DHAVE_NO_BUILTIN_BSWAP16

View File

@ -46,6 +46,10 @@ extern "C" {
#define DEBUG_ASSERT_VERBOSE
#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
*/

View File

@ -2016,7 +2016,8 @@ PREDEFINED = DOXYGEN \
MODULE_GNRC_SIXLOWPAN \
MODULE_GNRC_SIXLOWPAN_ND_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