From e56136ce1192d04a52b01ccb41284f0b7896430e Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Sat, 16 Jan 2021 20:16:00 +0000 Subject: debug: rename assert() to xassert(), to avoid clashing with --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index ea2d4a27..2775a50d 100644 --- a/main.c +++ b/main.c @@ -82,7 +82,7 @@ print_usage(const char *prog_name) bool locale_is_utf8(void) { - assert(strlen(u8"ö") == 2); + xassert(strlen(u8"ö") == 2); wchar_t w; if (mbtowc(&w, u8"ö", 2) != 2) @@ -240,7 +240,7 @@ main(int argc, char *const *argv) /* Strip trailing spaces */ char *end = font + strlen(font); - assert(*end == '\0'); + xassert(*end == '\0'); end--; while (end > font && isspace(*end)) *(end--) = '\0'; -- cgit v1.3