mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
system : Add defination of ESP_ERROR_CHECK_WITHOUT_ABORT under CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT flag
This commit is contained in:
parent
e81facd3e8
commit
d0ad0d6139
@ -132,7 +132,7 @@ void _esp_error_check_failed_without_abort(esp_err_t rc, const char *file, int l
|
|||||||
* serial output.
|
* serial output.
|
||||||
* In comparison with ESP_ERROR_CHECK(), this prints the same error message but isn't terminating the program.
|
* In comparison with ESP_ERROR_CHECK(), this prints the same error message but isn't terminating the program.
|
||||||
*/
|
*/
|
||||||
#ifdef NDEBUG
|
#if defined NDEBUG || defined CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT
|
||||||
#define ESP_ERROR_CHECK_WITHOUT_ABORT(x) ({ \
|
#define ESP_ERROR_CHECK_WITHOUT_ABORT(x) ({ \
|
||||||
esp_err_t err_rc_ = (x); \
|
esp_err_t err_rc_ = (x); \
|
||||||
err_rc_; \
|
err_rc_; \
|
||||||
|
Loading…
Reference in New Issue
Block a user