From 621291069f28549257010cc6f60e80acb9e0148d Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Wed, 27 Sep 2023 16:36:48 +0800 Subject: [PATCH] Add `assert_str` --- xy.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xy.h b/xy.h index 4fff43e..4b4e47d 100644 --- a/xy.h +++ b/xy.h @@ -71,6 +71,8 @@ void println(char* s) {printf("%s\n", s);} #define xy_arylen(x) (sizeof(x) / sizeof(x[0])) +#define assert_str(a,b) assert(xy_streql((a), (b))) + static inline void* xy_malloc0 (size_t size)