mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
debug: rename assert() to xassert(), to avoid clashing with <assert.h>
This commit is contained in:
parent
22f25a9e4f
commit
e56136ce11
31 changed files with 387 additions and 388 deletions
6
base64.c
6
base64.c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue