libnfc/contrib/win32/err.h

20 lines
353 B
C
Raw Permalink Normal View History

#ifndef _ERR_H_
#define _ERR_H_
#include <stdlib.h>
#define warnx(...) do { \
fprintf (stderr, __VA_ARGS__); \
fprintf (stderr, "\n"); \
} while (0)
#define errx(code, ...) do { \
fprintf (stderr, __VA_ARGS__); \
fprintf (stderr, "\n"); \
exit (code); \
} while (0)
#define err errx
2011-03-30 11:26:23 +02:00
#endif /* !_ERR_H_ */