malloc_throw Function* (tigcc.a)

alloc.h

void *malloc_throw (unsigned long Size);

Performs malloc, and throws an error if not successful.

malloc_throw calls malloc and throws a memory error if there is not enough memory. Otherwise, it returns a pointer to the allocated block.


Uses: malloc