summaryrefslogtreecommitdiff
path: root/include/mbgl/util/util.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-01-23 18:52:29 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-02-04 10:49:07 +0100
commit704b3719f5acfe2291c5976bf8c0935bb9523f5a (patch)
tree3cab33639d9edcc3df676e68e6acd7027d78e6a6 /include/mbgl/util/util.hpp
parenta67219ab8bf9e03b3365cd8612f5c40a64392e40 (diff)
downloadqtlocation-mapboxgl-704b3719f5acfe2291c5976bf8c0935bb9523f5a.tar.gz
use standard DEBUG macro rather than NDEBUG
Diffstat (limited to 'include/mbgl/util/util.hpp')
-rw-r--r--include/mbgl/util/util.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/mbgl/util/util.hpp b/include/mbgl/util/util.hpp
index bf5dad3c01..2b0fd9cdd5 100644
--- a/include/mbgl/util/util.hpp
+++ b/include/mbgl/util/util.hpp
@@ -1,15 +1,17 @@
#ifndef MBGL_UTIL_UTIL
#define MBGL_UTIL_UTIL
-#include <thread>
+#ifdef DEBUG
-#ifndef NDEBUG
#include <thread>
#define MBGL_STORE_THREAD(tid) const std::thread::id tid = std::this_thread::get_id();
#define MBGL_VERIFY_THREAD(tid) assert(tid == std::this_thread::get_id());
+
#else
+
#define MBGL_STORE_THREAD(tid)
#define MBGL_VERIFY_THREAD(tid)
+
#endif
#endif