From 57288890689bfa2c2d35882169a539813be621f1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 15 Sep 2013 00:32:07 +0300 Subject: add RWops leaks reporting. --- src/debug.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/debug.h') diff --git a/src/debug.h b/src/debug.h index 079cebeac..31b2b457b 100644 --- a/src/debug.h +++ b/src/debug.h @@ -57,7 +57,7 @@ #define MSDL_DisplayFormat(surface) \ FakeSDL_DisplayFormat(surface, __FILE__, __LINE__) -#else +#else // ENABLE_SDL_DEBUG #define MIMG_LoadPNG_RW(src) IMG_LoadPNG_RW(src) #define MSDL_FreeSurface(surface) SDL_FreeSurface(surface) @@ -72,3 +72,15 @@ #define MSDL_DisplayFormat(surface) SDL_DisplayFormat(surface) #endif // ENABLE_SDL_DEBUG + + +#ifdef DEBUG_PHYSFS + +#define MPHYSFSRWOPS_openRead(name) \ + FakePHYSFSRWOPS_openRead(name, __FILE__, __LINE__) + +#else // DEBUG_PHYSFS + +#define MPHYSFSRWOPS_openRead(name) PHYSFSRWOPS_openRead(name) + +#endif // DEBUG_PHYSFS -- cgit v1.2.3-70-g09d2