summaryrefslogtreecommitdiff
path: root/src/utils/virtfsrwops.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-10 23:13:00 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-10 23:25:52 +0300
commitaf1c910f5cc02f57e466ae066494fc73ed96e10a (patch)
treed77edc041625fe5c37d8eec6e1e9fceaf4a55620 /src/utils/virtfsrwops.h
parent4d3c700bf736def3c55f7e03c175e2e43ed3db02 (diff)
downloadmanaverse-af1c910f5cc02f57e466ae066494fc73ed96e10a.tar.gz
manaverse-af1c910f5cc02f57e466ae066494fc73ed96e10a.tar.bz2
manaverse-af1c910f5cc02f57e466ae066494fc73ed96e10a.tar.xz
manaverse-af1c910f5cc02f57e466ae066494fc73ed96e10a.zip
Fix virtfs checks.
Remove old check files related to physfs.
Diffstat (limited to 'src/utils/virtfsrwops.h')
-rw-r--r--src/utils/virtfsrwops.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/utils/virtfsrwops.h b/src/utils/virtfsrwops.h
index 83aa79996..e9d68f044 100644
--- a/src/utils/virtfsrwops.h
+++ b/src/utils/virtfsrwops.h
@@ -33,13 +33,23 @@
namespace VirtFs
{
- SDL_RWops *RWopsOpenRead(const char *const fname) A_WARN_UNUSED;
+#ifdef DEBUG_PHYSFS
+ SDL_RWops *RWopsOpenRead(const char *const fname,
+ const char *restrict const file,
+ const unsigned line);
+#else // DEBUG_PHYSFS
+ SDL_RWops *RWopsOpenRead(const char *const fname);
+#endif // DEBUG_PHYSFS
+
SDL_RWops *RWopsOpenWrite(const char *const fname) A_WARN_UNUSED;
SDL_RWops *RWopsOpenAppend(const char *const fname) A_WARN_UNUSED;
SDL_RWops *MakeRWops(PHYSFS_file *const handle) A_WARN_UNUSED;
#ifdef DUMP_LEAKED_RESOURCES
void reportRWops();
#endif // DUMP_LEAKED_RESOURCES
+#ifdef DEBUG_PHYSFS
+ void reportLeaks();
+#endif // DEBUG_PHYSFS
} // namespace VirtFs
#endif // UTILS_PHYSFSRWOPS_H