diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-02-11 00:00:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-02-11 00:00:44 +0300 |
commit | 380ae136f98671a81feb6095a66ac5401b1ff29e (patch) | |
tree | d2045b521e3f4be78524d551165bd6defd25ec39 /src/utils/virtfsrwops.cpp | |
parent | c218293c2fe001c23099e73bf9276fe295a7e682 (diff) | |
download | plus-380ae136f98671a81feb6095a66ac5401b1ff29e.tar.gz plus-380ae136f98671a81feb6095a66ac5401b1ff29e.tar.bz2 plus-380ae136f98671a81feb6095a66ac5401b1ff29e.tar.xz plus-380ae136f98671a81feb6095a66ac5401b1ff29e.zip |
Rename define DEBUG_PHYSFS into DEBUG_VIRTFS
Diffstat (limited to 'src/utils/virtfsrwops.cpp')
-rw-r--r-- | src/utils/virtfsrwops.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/utils/virtfsrwops.cpp b/src/utils/virtfsrwops.cpp index 81c8b4726..b6f7feec8 100644 --- a/src/utils/virtfsrwops.cpp +++ b/src/utils/virtfsrwops.cpp @@ -45,7 +45,7 @@ static int openedRWops = 0; #endif // DUMP_LEAKED_RESOURCES -#ifdef DEBUG_PHYSFS +#ifdef DEBUG_VIRTFS namespace { std::map<void*, VirtFs::DebugMemoryObject*> mRWops; @@ -105,7 +105,7 @@ void VirtFs::reportLeaks() mRWops.clear(); } } -#endif // DEBUG_PHYSFS +#endif // DEBUG_VIRTFS static PHYSFSINT physfsrwops_seek(SDL_RWops *const rw, const PHYSFSINT offset, @@ -251,9 +251,9 @@ static int physfsrwops_close(SDL_RWops *const rw) logger->assertLog("physfsrwops_seek: closing already closed RWops"); openedRWops --; #endif // DUMP_LEAKED_RESOURCES -#ifdef DEBUG_PHYSFS +#ifdef DEBUG_VIRTFS deleteDebugRWops(rw); -#endif // DEBUG_PHYSFS +#endif // DEBUG_VIRTFS return 0; } /* physfsrwops_close */ @@ -326,14 +326,14 @@ static bool checkFilePath(const char *const fname) } #endif // __APPLE__ -#ifdef DEBUG_PHYSFS +#ifdef DEBUG_VIRTFS #undef RWopsOpenRead SDL_RWops *VirtFs::RWopsOpenRead(const char *const fname, const char *restrict const file, const unsigned line) -#else // DEBUG_PHYSFS +#else // DEBUG_VIRTFS SDL_RWops *VirtFs::RWopsOpenRead(const char *const fname) -#endif // DEBUG_PHYSFS +#endif // DEBUG_VIRTFS { BLOCK_START("RWopsopenRead") #ifdef __APPLE__ @@ -346,29 +346,29 @@ SDL_RWops *VirtFs::RWopsOpenRead(const char *const fname) #endif // USE_FUZZER #ifdef USE_PROFILER -#ifdef DEBUG_PHYSFS +#ifdef DEBUG_VIRTFS SDL_RWops *const ret = addDebugRWops( create_rwops(VirtFs::openRead(fname)), fname, file, line); -#else // DEBUG_PHYSFS +#else // DEBUG_VIRTFS SDL_RWops *const ret = create_rwops(VirtFs::openRead(fname)); -#endif // DEBUG_PHYSFS +#endif // DEBUG_VIRTFS BLOCK_END("RWopsopenRead") return ret; #else // USE_PROFILER -#ifdef DEBUG_PHYSFS +#ifdef DEBUG_VIRTFS return addDebugRWops( create_rwops(VirtFs::openRead(fname)), fname, file, line); -#else // DEBUG_PHYSFS +#else // DEBUG_VIRTFS return create_rwops(VirtFs::openRead(fname)); -#endif // DEBUG_PHYSFS +#endif // DEBUG_VIRTFS #endif // USE_PROFILER } /* RWopsopenRead */ |