common : do not use GNU zero-length __VA_ARGS__ extension

This commit is contained in:
Cebtenzzre 2023-09-15 13:53:57 -04:00
parent 98311c4277
commit f2e331ca3b

View file

@ -21,7 +21,7 @@
#endif // _WIN32
#define die(msg) do { fputs("error: " msg "\n", stderr); exit(1); } while (0)
#define die_fmt(fmt, ...) do { fprintf(stderr, "error: " fmt "\n", ##__VA_ARGS__); exit(1); } while (0)
#define die_fmt(fmt, ...) do { fprintf(stderr, "error: " fmt "\n", __VA_ARGS__); exit(1); } while (0)
//
// CLI argument parsing