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





                                                                                
#include <stdio.h>

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