mirror of https://github.com/ARMmbed/mbed-os.git
Only enable DEBUG_NRF_USER when NDEBUG is not set
parent
2615631a4b
commit
5759e17a85
|
@ -52,6 +52,10 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if !defined(NDEBUG) && !defined(DEBUG_NRF_USER)
|
||||
#define DEBUG_NRF_USER
|
||||
#endif
|
||||
|
||||
#if defined(DEBUG_NRF) || defined(DEBUG_NRF_USER)
|
||||
|
||||
/** @brief Function for handling assertions.
|
||||
|
|
|
@ -76,6 +76,10 @@ extern "C" {
|
|||
void assert_nrf_callback(uint16_t line_num, const uint8_t *file_name);
|
||||
//lint -restore
|
||||
|
||||
#if !defined(NDEBUG) && !defined(DEBUG_NRF_USER)
|
||||
#define DEBUG_NRF_USER
|
||||
#endif
|
||||
|
||||
#if (defined(DEBUG_NRF) || defined(DEBUG_NRF_USER))
|
||||
#define NRF_ASSERT_PRESENT 1
|
||||
#else
|
||||
|
|
|
@ -3524,8 +3524,7 @@
|
|||
"CMSIS_VECTAB_VIRTUAL",
|
||||
"CMSIS_VECTAB_VIRTUAL_HEADER_FILE=\"cmsis_nvic.h\"",
|
||||
"NO_SYSTICK",
|
||||
"MBED_TICKLESS",
|
||||
"DEBUG_NRF_USER"
|
||||
"MBED_TICKLESS"
|
||||
],
|
||||
"MERGE_BOOTLOADER": false,
|
||||
"extra_labels": [
|
||||
|
|
Loading…
Reference in New Issue