1ALLEGRO_MEMORY_INTERFACE(3)Library Functions ManualALLEGRO_MEMORY_INTERFACE(3)
2
3
4
6 ALLEGRO_MEMORY_INTERFACE
7
9 #include <allegro5/allegro.h>
10
11 typedef struct ALLEGRO_MEMORY_INTERFACE ALLEGRO_MEMORY_INTERFACE;
12
14 This structure has the following fields.
15
16 void *(*mi_malloc)(size_t n, int line, const char *file, const char *func);
17 void (*mi_free)(void *ptr, int line, const char *file, const char *func);
18 void *(*mi_realloc)(void *ptr, size_t n, int line, const char *file,
19 const char *func);
20 void *(*mi_calloc)(size_t count, size_t n, int line, const char *file,
21 const char *func);
22
24 al_set_memory_interface(3)
25
26
27
28Allegro reference manual ALLEGRO_MEMORY_INTERFACE(3)