Browse Source

native: always assert() verbosely

pr/spi.typo
Martine Lenders 6 years ago committed by Martine Lenders
parent
commit
235375f664
  1. 2
      boards/native/Makefile.include
  2. 4
      core/include/assert.h
  3. 3
      doc/doxygen/riot.doxyfile

2
boards/native/Makefile.include

@ -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

4
core/include/assert.h

@ -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
*/

3
doc/doxygen/riot.doxyfile

@ -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

Loading…
Cancel
Save