Fix `TODO()` macro to allow for printf-style args like the other `TRACEx()`-derrived macros.

Fortune for naka's current commit: Future curse − 末凶
master
Avril 3 years ago
parent 9d0747a5f7
commit 1189d7fee8
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -195,7 +195,7 @@ static_assert_eq(bswap(bswap(128lu)), 128, "bswap128 (lu) failed (3)");
#define FATAL(msg, ...) (TRACEx(FATAL, "FATAL", msg, ## __VA_ARGS__), abort()) #define FATAL(msg, ...) (TRACEx(FATAL, "FATAL", msg, ## __VA_ARGS__), abort())
#define TODO(x) FATAL("function %s() is unimplemented: " x, __func__) #define TODO(x, ...) FATAL("function %s() is unimplemented: " x, __func__, ## __VA_ARGS__)
// Debug testing // Debug testing

@ -45,6 +45,7 @@ void display_result(FILE* output, dispin_t input, dispkind_t how, dispflags_t fl
case DISPK_CSV: case DISPK_CSV:
case DISPK_BINARY: case DISPK_BINARY:
case DISPK_INI: case DISPK_INI:
default: COLD_EXPR(FATAL("unknown or unimplemented display kind: %d", (int)how)); TODO("display kind %d is unimplemented", (int)how);
default: COLD_EXPR(FATAL("unknown display kind: %d", (int)how));
} }
} }

Loading…
Cancel
Save