#include <freeradius-devel/bio/bio_priv.h>
#include <freeradius-devel/bio/null.h>
+#ifndef NDEBUG
/** Free this bio.
*
* The bio can only be freed if it is not in any chain.
*/
return 0;
}
+#endif
/** Always returns EOF on fr_bio_read()
*
ssize_t fr_bio_buf_write(fr_bio_buf_t *bio_buf, const void *buffer, size_t size) CC_HINT(nonnull);
+#ifndef NDEBUG
static inline void CC_HINT(nonnull) fr_bio_buf_verify(fr_bio_buf_t const *bio_buf)
{
fr_assert(bio_buf->start != NULL);
fr_assert(bio_buf->read <= bio_buf->write);
fr_assert(bio_buf->write <= bio_buf->end);
}
+#else
+#define fr_bio_buf_verify(_x)
+#endif
static inline void CC_HINT(nonnull) fr_bio_buf_reset(fr_bio_buf_t *bio_buf)
{