1#ifndef COMMON_H_
2#define COMMON_H_
3
4#define ASSERT_STRING(a, b) do {										\
5	if(strcmp((a), (b)) != 0) {											\
6		printf("FAILED: ASSERT_STRING(%s, %s) in %s on line %d.\n",		\
7    		a, b, __FILE__, __LINE__);									\
8	}																	\
9} while(0);
10
11#define ASSERT_ERR_OK(e) (assert(err_is_ok((e))))
12#define ASSERT_ERR(val, errno) (assert(err_no((val)) == (errno)))
13
14#endif /* COMMON_H_ */
15