make the macro more cross-compiler friendly

This commit is contained in:
2025-06-19 16:41:08 +02:00
parent 1e9ae43e52
commit 5f6f1bf720

View File

@@ -7,10 +7,10 @@
#include <sys/types.h>
#include <time.h>
#define error(ret, s, ...) \
do { \
fprintf(stderr, (s), ##__VA_ARGS__); \
exit(ret); \
#define error(ret, s, ...) \
do { \
fprintf(stderr, (s)__VA_OPT__(, __VA_ARGS__)); \
exit(ret); \
} while (0)
typedef unsigned long long ull;