Closed bcfriesen closed 7 years ago
Currently we have
... ptr = (type*) resist_malloc(size); assert(ptr); ...
which leads to lots of asserts pasted all over the code base. We can make this more succinct by putting the assert in the allocator itself.
assert
Actually, there already is an assert in the allocator (see line 32 of resist-memory.c). I will remove the redundant asserts in resist-context.c then.
resist-memory.c
resist-context.c
Currently we have
which leads to lots of
assert
s pasted all over the code base. We can make this more succinct by putting theassert
in the allocator itself.