realloc_throw Function* (tigcc.a)

alloc.h

void *realloc_throw (void *Ptr, unsigned long NewSize);

Performs realloc, and throws an error if not successful.

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


Uses: realloc