diff options
author | Mattias Andrée <maandree@kth.se> | 2020-06-21 10:27:06 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-06-21 10:27:06 +0200 |
commit | d63b4e179e05d5dbd114a0a2493f0feb076c6d08 (patch) | |
tree | ad3da8d938b5cd0d8b90f8504d27a293e7917db3 | |
parent | Add string parameter to _Static_assert use, required by C11 (diff) | |
download | sctrace-d63b4e179e05d5dbd114a0a2493f0feb076c6d08.tar.gz sctrace-d63b4e179e05d5dbd114a0a2493f0feb076c6d08.tar.bz2 sctrace-d63b4e179e05d5dbd114a0a2493f0feb076c6d08.tar.xz |
Fix CASE macro: tprintf is returns void, so return in separate statement
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | print.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -22,7 +22,12 @@ #define CASE(N)\ - if (proc->args[arg_index] == N) return tprintf(proc, "%s", #N) + do {\ + if (proc->args[arg_index] == N) {\ + tprintf(proc, "%s", #N);\ + return;\ + }\ + } while (0) #define FLAGS_BEGIN\ do {\ |