Add assert_str

This commit is contained in:
Aoran Zeng 2023-09-27 16:36:48 +08:00
parent 4492b7a3fc
commit 621291069f

2
xy.h
View File

@ -71,6 +71,8 @@ void println(char* s) {printf("%s\n", s);}
#define xy_arylen(x) (sizeof(x) / sizeof(x[0])) #define xy_arylen(x) (sizeof(x) / sizeof(x[0]))
#define assert_str(a,b) assert(xy_streql((a), (b)))
static inline void* static inline void*
xy_malloc0 (size_t size) xy_malloc0 (size_t size)