Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 727 vs 760 for /trunk/Source Code/Platform/PlatformDefines.cpp

Diff revisions: vs.
  @@ -18,19 +18,19 @@
18 18 namespace Divide {
19 19 namespace MemoryManager {
20 20 void log_new(void* p, size_t size, const char* zFile, size_t nLine) {
21 - #if defined(_DEBUG)
22 - if (MemoryTracker::Ready) {
23 - AllocTracer.Add( p, size, zFile, nLine );
21 + if (Config::Build::IS_DEBUG_BUILD) {
22 + if (MemoryTracker::Ready) {
23 + AllocTracer.Add( p, size, zFile, nLine );
24 + }
24 25 }
25 - #endif
26 26 }
27 27
28 28 void log_delete(void* p) {
29 - #if defined(_DEBUG)
30 - if (MemoryTracker::Ready) {
31 - AllocTracer.Remove( p );
29 + if (Config::Build::IS_DEBUG_BUILD) {
30 + if (MemoryTracker::Ready) {
31 + AllocTracer.Remove( p );
32 + }
32 33 }
33 - #endif
34 34 }
35 35 }; // namespace MemoryManager
36 36