diff options
author | Mattias Andrée <maandree@kth.se> | 2018-11-14 23:07:52 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2018-11-14 23:07:52 +0100 |
commit | 548a358df5654e653329f2c9033ef94aeaa143ad (patch) | |
tree | 5ae1a435ee78a55ea68c25315044a1e052b62328 /test.h | |
parent | Document libsimple-arg.h and add support optional arguments on long options and add KEEP_DASHDASH to ARGBEGIN3 (now named ARGBEGIN4) (diff) | |
download | libsimple-548a358df5654e653329f2c9033ef94aeaa143ad.tar.gz libsimple-548a358df5654e653329f2c9033ef94aeaa143ad.tar.bz2 libsimple-548a358df5654e653329f2c9033ef94aeaa143ad.tar.xz |
Some fixes to libsimple-arg.h, test everything except long arguments, and fix some man pages
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | test.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -44,11 +44,11 @@ assert_exit((void)(ptr__ = (EXPR)));\ } while (0) -#define assert_stderr(FMT, ...)\ +#define assert_stderr(...)\ do {\ char buf__[1024];\ int len__;\ - len__ = sprintf(buf__, FMT, __VA_ARGS__);\ + len__ = sprintf(buf__, __VA_ARGS__);\ assert(len__ >= 0);\ assert((size_t)len__ == stderr_n);\ assert(!memcmp(buf__, (char **)(void *)(&stderr_buf), stderr_n)); \ |