u3: adds debug assertion for atom-allocation internal invariant

This commit is contained in:
Joe Bryan 2020-09-29 12:36:13 -07:00
parent 190297266a
commit f6279181bb

View File

@ -33,6 +33,10 @@ _ci_slab_init(u3i_slab* sab_u, c3_w len_w)
vat_u->mug_w = 0;
vat_u->len_w = len_w;
#ifdef U3_MEMORY_DEBUG
c3_assert( len_w );
#endif
sab_u->_._vat_u = vat_u;
sab_u->buf_w = vat_u->buf_w;
sab_u->len_w = len_w;