5 ms·
> (self).elements = (void )malloc(sizeof(void ) t_capacity); assert(self->elements); 1) assert() only blows on _DEBUG builds 2) running out of memory for
by keikobadthebad 3y ago
> (self).elements = (void )malloc(sizeof(void ) t_capacity);
assert(self->elements);
1) assert() only blows on _DEBUG builds
2) running out of memory for the process to allocate is a natural, normal thing, eg, maybe caused by VM or other limits. It shouldn't cause your process to terminate in an uncontrolled way