Revise macros in tools

This commit is contained in:
Rangi
2022-10-12 21:43:00 -04:00
parent ce004be92c
commit 89a888277a
3 changed files with 49 additions and 45 deletions

View File

@@ -19,6 +19,8 @@
#error Define USAGE_OPTS before including common.h!
#endif
#define COUNTOF(...) (sizeof(__VA_ARGS__) / sizeof(*(__VA_ARGS__)))
#define error_exit(...) exit((fprintf(stderr, PROGRAM_NAME ": " __VA_ARGS__), 1))
noreturn void usage_exit(int status) {