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");
74 fprintf(stderr, "FATAL: Out of memory (while trying to claim %d bytes)\n", size);
85 long rfx_memory_used()
89 char* rfx_memory_used_str()