diff options
author | vng <viktor.govako@gmail.com> | 2012-09-12 16:43:41 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:43:17 +0300 |
commit | 2799dc81d1ab860ecf5e6c533eb814937d859852 (patch) | |
tree | b0625e8b6a3a7ba8328bd34801d1fc1074be951d /base | |
parent | 3c934528beb837966719347a65de558ee1da35c8 (diff) |
Add conditional compilation for hack.
Diffstat (limited to 'base')
-rw-r--r-- | base/object_tracker.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/object_tracker.cpp b/base/object_tracker.cpp index bf4c4a1721..3ba5127e23 100644 --- a/base/object_tracker.cpp +++ b/base/object_tracker.cpp @@ -2,6 +2,8 @@ #include "assert.hpp" #include "logging.hpp" +#include "../std/target_os.hpp" + #ifndef OMIM_OS_WINDOWS #include <signal.h> #endif @@ -64,6 +66,8 @@ void ObjectTracker::PrintLeaks() void BreakIntoDebugger() { + /// @todo Probably we can make it more simple (like std::terminate). + #ifdef OMIM_OS_WINDOWS __debugbreak(); #else |