summaryrefslogtreecommitdiff
path: root/src/debug.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-15 00:32:07 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-15 00:32:07 +0300
commit57288890689bfa2c2d35882169a539813be621f1 (patch)
tree8c2886837e997d073906cb85aee38c9d77a8069b /src/debug.h
parent53947c9d39440424dcf815ea5df130e833457437 (diff)
downloadmanaplus-57288890689bfa2c2d35882169a539813be621f1.tar.gz
manaplus-57288890689bfa2c2d35882169a539813be621f1.tar.bz2
manaplus-57288890689bfa2c2d35882169a539813be621f1.tar.xz
manaplus-57288890689bfa2c2d35882169a539813be621f1.zip
add RWops leaks reporting.
Diffstat (limited to 'src/debug.h')
-rw-r--r--src/debug.h14
1 files changed, 13 insertions, 1 deletions
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