9 void rfx_free(void*ptr)
21 void* rfx_alloc(int size)
26 //fprintf(stderr, "Warning: Zero alloc\n");
32 fprintf(stderr, "FATAL: Out of memory (while trying to claim %d bytes)\n", size);
38 void* rfx_realloc(void*data, int size)
43 //fprintf(stderr, "Warning: Zero realloc\n");
50 ptr = realloc(data, size);
54 fprintf(stderr, "FATAL: Out of memory (while trying to claim %d bytes)\n", size);
60 void* rfx_calloc(int size)
65 //fprintf(stderr, "Warning: Zero alloc\n");
69 ptr = calloc(1, size);
74 fprintf(stderr, "FATAL: Out of memory (while trying to claim %d bytes)\n", size);
84 void* rfx_calloc_replacement(int nmemb, int size)
86 rfx_calloc(nmemb*size);
91 long rfx_memory_used()
95 char* rfx_memory_used_str()