From af1c910f5cc02f57e466ae066494fc73ed96e10a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 10 Feb 2017 23:13:00 +0300 Subject: Fix virtfs checks. Remove old check files related to physfs. --- src/utils/virtfsrwops.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/utils/virtfsrwops.h') 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 -- cgit v1.2.3-70-g09d2