esp-idf/components/newlib/platform_include
Marius Vikhammer ff8265b6b3 feat(newlib): add option to disable eval of expression in assert() when NDEBUG set
According to the standard assert(X) should be replaced by a void expression when
NDEBUG is set. IDF's behavior was to not trigger an assertion, but we would still
evaluate X, e.g. if X was a function it would be ran.

This MR adds a kconfig option CONFIG_COMPILER_ASSERT_NDEBUG_EVALUATE which allows us
revert the behavior to be inline with the standard.

With IDF v6.0 the plan is to make CONFIG_COMPILER_ASSERT_NDEBUG_EVALUATE=n the default
behavior.

Closes https://github.com/espressif/esp-idf/issues/10136
Closes https://github.com/espressif/esp-idf/issues/2758
2024-08-20 09:26:54 +08:00
..
net refactor(core): reformat newlib and pthread with astyle 2024-02-27 10:00:06 +08:00
sys fix(newlib): fix include sys/dirent.h breaking change 2024-07-31 17:12:23 +07:00
assert.h feat(newlib): add option to disable eval of expression in assert() when NDEBUG set 2024-08-20 09:26:54 +08:00
endian.h refactor(core): reformat newlib and pthread with astyle 2024-02-27 10:00:06 +08:00
errno.h refactor(core): reformat newlib and pthread with astyle 2024-02-27 10:00:06 +08:00
esp_newlib.h change(newlib): update newlib according to new internal structures 2023-10-09 12:13:02 +04:00
pthread.h components: Change copyright in components files 2022-06-17 16:59:56 +02:00
semaphore.h refactor: moved semaphore.h to newlib platform_include 2023-08-08 16:45:57 +08:00
time.h newlib: Fix header issues with C++ guards and implicit inclusion 2022-07-14 08:32:04 +02:00