-
Alessandro Rubini authored
See gcc info pages: "Macros with a Variable Number of Arguments." The ISO-C stadanrd doesn't allow varargs macros to get zero or more arguments. So this fixes the problem using the gcc extension. A standard-compliant alternative would be to have "fmt" included in the variadic part, like this: #define assert(cond, ...) \ if (CONFIG_HAS_ASSERT && !(cond)) \ __assert(__func__, __LINE__, 1 /* forever */, __VA_ARGS__) But the reader wouldn't now it's a fmt+args. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
c04fb597
Name |
Last commit
|
Last update |
---|---|---|
arch/lm32 | ||
configs | ||
dev | ||
doc | ||
host | ||
include | ||
ipc | ||
lib | ||
monitor | ||
pp_printf | ||
ppsi @ d6aefd73 | ||
scripts | ||
sdb-lib | ||
shell | ||
softpll | ||
test/snmp | ||
tools | ||
.gitignore | ||
.gitmodules | ||
COPYING | ||
Kconfig | ||
MAKEALL | ||
Makefile | ||
Makefile.kconfig | ||
bigobj.lds | ||
check-error.c | ||
compare_size.sh | ||
dump-info.c | ||
revision.c | ||
save_size.sh | ||
system_checks.c | ||
wrc_main.c | ||
wrc_main_sim.c | ||
wrs_main.c |