debug: rename assert() to xassert(), to avoid clashing with <assert.h>

This commit is contained in:
Craig Barnes 2021-01-16 20:16:00 +00:00
parent 22f25a9e4f
commit e56136ce11
31 changed files with 387 additions and 388 deletions

View file

@ -98,7 +98,7 @@ invalid:
char *
base64_encode(const uint8_t *data, size_t size)
{
assert(size % 3 == 0);
xassert(size % 3 == 0);
if (unlikely(size % 3 != 0))
return NULL;
@ -138,8 +138,8 @@ base64_encode(const uint8_t *data, size_t size)
void
base64_encode_final(const uint8_t *data, size_t size, char result[4])
{
assert(size > 0);
assert(size < 3);
xassert(size > 0);
xassert(size < 3);
uint32_t v = 0;
if (size >= 1)