TinyGL-C89/src/memory.c
Aidan Mullen 9a779bf1a1 Add C89 support
Allow compilation from C89 compilers.
2024-07-08 09:27:12 -04:00

23 lines
300 B
C

/*
* Memory allocator for TinyGL
*/
#include "zgl.h"
/* modify these functions so that they suit your needs */
void gl_free(void *p)
{
free(p);
}
void *gl_malloc(int size)
{
return malloc(size);
}
void *gl_zalloc(int size)
{
return calloc(1, size);
}
/* --- end of MEMORY_C --- */