esp-idf/components/newlib/include
Ivan Grokhotkov c47cc63489 newlib: change definition of assert for release builds
One common pattern of using assert function looks as follows:
    int ret = do_foo();
    assert(ret == 0);   // which reads as: “do_foo should never fail here, by design”
The problem with such code is that if ‘assert’ is removed by the preprocessor in release build,
variable ret is no longer used, and the compiler issues a warning about this.
Changing assert definition in the way done here make the variable used, from language syntax perspective.
Semantically, the variable is still unused at run time (as sizeof can be evaluated at compile time), so the compiler
can optimize things away if possible.
2017-01-17 00:49:38 +08:00
..
machine Initial public version 2016-08-17 23:08:22 +08:00
sys vfs: add directory APIs 2017-01-09 04:51:24 +08:00
xtensa/config Initial public version 2016-08-17 23:08:22 +08:00
_ansi.h Initial public version 2016-08-17 23:08:22 +08:00
_syslist.h Initial public version 2016-08-17 23:08:22 +08:00
alloca.h Initial public version 2016-08-17 23:08:22 +08:00
ar.h Initial public version 2016-08-17 23:08:22 +08:00
argz.h Initial public version 2016-08-17 23:08:22 +08:00
assert.h newlib: change definition of assert for release builds 2017-01-17 00:49:38 +08:00
complex.h Initial public version 2016-08-17 23:08:22 +08:00
config.h Initial public version 2016-08-17 23:08:22 +08:00
ctype.h Initial public version 2016-08-17 23:08:22 +08:00
dirent.h Initial public version 2016-08-17 23:08:22 +08:00
envlock.h Initial public version 2016-08-17 23:08:22 +08:00
envz.h Initial public version 2016-08-17 23:08:22 +08:00
errno.h Initial public version 2016-08-17 23:08:22 +08:00
fastmath.h Initial public version 2016-08-17 23:08:22 +08:00
fcntl.h Initial public version 2016-08-17 23:08:22 +08:00
fenv.h Initial public version 2016-08-17 23:08:22 +08:00
fnmatch.h Initial public version 2016-08-17 23:08:22 +08:00
getopt.h Initial public version 2016-08-17 23:08:22 +08:00
glob.h Initial public version 2016-08-17 23:08:22 +08:00
grp.h Initial public version 2016-08-17 23:08:22 +08:00
iconv.h Initial public version 2016-08-17 23:08:22 +08:00
ieeefp.h Initial public version 2016-08-17 23:08:22 +08:00
inttypes.h Initial public version 2016-08-17 23:08:22 +08:00
langinfo.h Initial public version 2016-08-17 23:08:22 +08:00
libgen.h Initial public version 2016-08-17 23:08:22 +08:00
limits.h Initial public version 2016-08-17 23:08:22 +08:00
locale.h Initial public version 2016-08-17 23:08:22 +08:00
malloc.h Initial public version 2016-08-17 23:08:22 +08:00
math.h Initial public version 2016-08-17 23:08:22 +08:00
newlib.h Initial public version 2016-08-17 23:08:22 +08:00
paths.h Initial public version 2016-08-17 23:08:22 +08:00
pthread.h Initial public version 2016-08-17 23:08:22 +08:00
pwd.h Initial public version 2016-08-17 23:08:22 +08:00
reent.h Initial public version 2016-08-17 23:08:22 +08:00
regdef.h Initial public version 2016-08-17 23:08:22 +08:00
regex.h Initial public version 2016-08-17 23:08:22 +08:00
sched.h Initial public version 2016-08-17 23:08:22 +08:00
search.h Initial public version 2016-08-17 23:08:22 +08:00
setjmp.h Initial public version 2016-08-17 23:08:22 +08:00
signal.h Initial public version 2016-08-17 23:08:22 +08:00
spawn.h Initial public version 2016-08-17 23:08:22 +08:00
stdatomic.h stdatomic.h: Include stdint.h, required for some limit types 2017-01-10 11:11:27 +11:00
stdint.h Initial public version 2016-08-17 23:08:22 +08:00
stdio_ext.h Initial public version 2016-08-17 23:08:22 +08:00
stdio.h Initial public version 2016-08-17 23:08:22 +08:00
stdlib.h Initial public version 2016-08-17 23:08:22 +08:00
string.h Initial public version 2016-08-17 23:08:22 +08:00
strings.h Initial public version 2016-08-17 23:08:22 +08:00
tar.h Initial public version 2016-08-17 23:08:22 +08:00
termios.h Initial public version 2016-08-17 23:08:22 +08:00
tgmath.h Initial public version 2016-08-17 23:08:22 +08:00
time.h Initial public version 2016-08-17 23:08:22 +08:00
unctrl.h Initial public version 2016-08-17 23:08:22 +08:00
unistd.h Initial public version 2016-08-17 23:08:22 +08:00
utime.h Initial public version 2016-08-17 23:08:22 +08:00
utmp.h Initial public version 2016-08-17 23:08:22 +08:00
wchar.h Initial public version 2016-08-17 23:08:22 +08:00
wctype.h Initial public version 2016-08-17 23:08:22 +08:00
wordexp.h Initial public version 2016-08-17 23:08:22 +08:00