aboutsummaryrefslogblamecommitdiff
path: root/include/util.h
blob: e19dbe80434aea670252f235efe21a94a0c6a3b1 (plain) (tree)
1
2
3
4
5
6
                  
 

                                                                                  
                   
 
#include <stdio.h>

#define err_ret(r, fmt, ...) {\
	fprintf(stderr, "[%s:%d] " fmt "\n", __FILE__, __LINE__, ##__VA_ARGS__); \
	return r; \
}