mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-01-22 12:45:16 +08:00
Add assert_str
This commit is contained in:
parent
4492b7a3fc
commit
621291069f
2
xy.h
2
xy.h
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user