8 void rfx_free(void*ptr)
15 void* rfx_alloc(int size)
20 //fprintf(stderr, "Warning: Zero alloc\n");
26 fprintf(stderr, "FATAL: Out of memory (while trying to claim %d bytes)\n", size);
27 /* TODO: we should send a signal, so that the debugger kicks in? */
32 void* rfx_realloc(void*data, int size)
37 //fprintf(stderr, "Warning: Zero realloc\n");
44 ptr = realloc(data, size);
48 fprintf(stderr, "FATAL: Out of memory (while trying to claim %d bytes)\n", size);
49 /* TODO: we should send a signal, so that the debugger kicks in? */
54 void* rfx_calloc(int size)
59 //fprintf(stderr, "Warning: Zero alloc\n");
68 fprintf(stderr, "FATAL: Out of memory (while trying to claim %d bytes)\n", size);
69 /* TODO: we should send a signal, so that the debugger kicks in? */
79 long rfx_memory_used()
83 char* rfx_memory_used_str()