#include <oskit/c/malloc.h>void *mustmalloc(size_t size);
Calls malloc to allocate memory, asserting that the return is non-zero; i.e., mustmalloc will panic if no memory is available.Note that if NDEBUG is defined, assert will do nothing and this routine is identical to malloc.
- size
- Size in bytes of desired allocation.
Returns a pointer to the allocated memory if it returns at all.