7 void rfx_free(void*ptr)
14 void* rfx_alloc(int size)
19 //fprintf(stderr, "Warning: Zero alloc\n");
25 fprintf(stderr, "FATAL: Out of memory (while trying to claim %d bytes)\n", size);
26 /* TODO: we should send a signal, so that the debugger kicks in? */
31 void* rfx_realloc(void*data, int size)
36 //fprintf(stderr, "Warning: Zero realloc\n");
43 ptr = realloc(data, size);
47 fprintf(stderr, "FATAL: Out of memory (while trying to claim %d bytes)\n", size);
48 /* TODO: we should send a signal, so that the debugger kicks in? */
53 void* rfx_calloc(int size)
58 //fprintf(stderr, "Warning: Zero alloc\n");
67 fprintf(stderr, "FATAL: Out of memory (while trying to claim %d bytes)\n", size);
68 /* TODO: we should send a signal, so that the debugger kicks in? */
78 long rfx_memory_used()
82 char* rfx_memory_used_str()