diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-01-20 16:47:05 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-01-20 16:47:05 +0000 |
| commit | c5031be4899ea516635ef7c65a6f82b3b45860b9 (patch) | |
| tree | 10948eb4aface28e80d6a075fecf11fad3075618 /main.c | |
| parent | Merge branch 'decset-1047-and-1048' (diff) | |
| parent | debug: rename assert() to xassert(), to avoid clashing with <assert.h> (diff) | |
Merge branch 'stacktrace'
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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'; |
