blob: ca4e6d80995e7949f1111c05b80f7631fe6a07aa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#include <stdio.h>
#define err_print(fmt, ...) \
fprintf(stderr, "[%s:%d] " fmt "\n", __FILE__, __LINE__, ##__VA_ARGS__)
#define err_ret(r, fmt, ...) \
do { \
err_print(fmt, ##__VA_ARGS__); \
return r; \
} while (0)
|