summaryrefslogtreecommitdiff
path: root/include
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
parenta67219ab8bf9e03b3365cd8612f5c40a64392e40 (diff)
downloadqtlocation-mapboxgl-704b3719f5acfe2291c5976bf8c0935bb9523f5a.tar.gz
use standard DEBUG macro rather than NDEBUG
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/map/map.hpp2
-rw-r--r--include/mbgl/util/util.hpp6
2 files changed, 5 insertions, 3 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index 876b7b7207..ae0228544e 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -198,7 +198,7 @@ private:
View &view;
-#ifndef NDEBUG
+#ifdef DEBUG
const std::thread::id mainThread;
std::thread::id mapThread;
#endif
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