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 --- extract.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extract.c') diff --git a/extract.c b/extract.c index f9470871..145ef03f 100644 --- a/extract.c +++ b/extract.c @@ -46,7 +46,7 @@ ensure_size(struct extraction_context *ctx, size_t additional_chars) ctx->size = new_size; } - assert(ctx->size >= ctx->idx + additional_chars); + xassert(ctx->size >= ctx->idx + additional_chars); return true; } @@ -71,8 +71,8 @@ extract_finish(struct extraction_context *ctx, char **text, size_t *len) goto out; ctx->buf[ctx->idx++] = L'\0'; } else { - assert(ctx->idx > 0); - assert(ctx->idx <= ctx->size); + xassert(ctx->idx > 0); + xassert(ctx->idx <= ctx->size); if (ctx->buf[ctx->idx - 1] == L'\n') ctx->buf[ctx->idx - 1] = L'\0'; else { -- cgit v1.3