quick & dirty leak checker

This commit is contained in:
Sean Barrett
2015-01-21 07:46:54 -08:00
parent ec2158386c
commit 0d840ab330
4 changed files with 150 additions and 0 deletions

View File

@ -327,6 +327,8 @@ extern int stb_vorbis_get_samples_short(stb_vorbis *f, int channels, short **buf
#endif
extern void stb_vorbis_free(void *p);
//////// ERROR CODES
enum STBVorbisError
@ -592,6 +594,11 @@ typedef float codetype;
typedef uint16 codetype;
#endif
//#define STB_LEAKCHECK_IMPLEMENTATION
//#define STB_LEAKCHECK_SHOWALL
//#include "stb_leakcheck.h"
//void stb_vorbis_dumpmem(void) { stb_leakcheck_dumpmem(); }
// @NOTE
//
// Some arrays below are tagged "//varies", which means it's actually