Merge branch 'master' of ssh://repo.or.cz/srv/git/tgl
[tgl.git] / src / memory.c
blobcc61facc6adcb534d5227d41ff924599c9c73ec1
1 /*
2 * Memory allocator for TinyGL
3 */
4 #include "zgl.h"
6 /* modify these functions so that they suit your needs */
8 void gl_free(void *p)
10 free(p);
13 void *gl_malloc(int size)
15 return malloc(size);
18 void *gl_zalloc(int size)
20 return calloc(1, size);