2 static inline void my_assert_(int line, const char *name, long v, long expect, int is_eq)
12 printf("%d: '%s' is %lx, need %s%lx\n", line, name,
13 v, is_eq ? "" : "!", expect);
17 #define my_assert(v, exp) \
18 my_assert_(__LINE__, #v, (long)(v), (long)(exp), 1)
19 #define my_assert_not(v, exp) \
20 my_assert_(__LINE__, #v, (long)(v), (long)(exp), 0)