Support custom memory allocators

This commit is contained in:
raysan5 2020-01-19 11:21:29 +01:00
parent 09d583687a
commit fce438cd1c

View File

@ -156,6 +156,17 @@
#endif
#endif
// Allow custom memory allocators
#ifndef RAYGUI_MALLOC
#define RAYGUI_MALLOC(sz) malloc(sz)
#endif
#ifndef RAYGUI_CALLOC
#define RAYGUI_CALLOC(n,sz) calloc(n,sz)
#endif
#ifndef RAYGUI_FREE
#define RAYGUI_FREE(p) free(p)
#endif
//----------------------------------------------------------------------------------
// Defines and Macros
//----------------------------------------------------------------------------------