mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-01-09 02:57:21 -03:00
5 lines
215 B
C
5 lines
215 B
C
|
|
#define WARN(test) if (!(test)) \
|
|
fprintf(stderr, "check failed @ %d: %s\n", (int)__LINE__, #test)
|
|
|
|
#define WARNF(test) if (!(test) && ((void) fprintf(stderr, "check failed @ %d: %s\n", (int)__LINE__, #test), 1))
|