1#pragma once
2
3#ifndef NDEBUG
4
5#include <thread>
6#define MBGL_STORE_THREAD(tid) const std::thread::id tid = std::this_thread::get_id();
7#define MBGL_VERIFY_THREAD(tid) assert(tid == std::this_thread::get_id());
8
9#else
10
11#define MBGL_STORE_THREAD(tid)
12#define MBGL_VERIFY_THREAD(tid)
13
14#endif
15
16// GCC 4.9 compatibility
17#if !defined(__GNUC__) || __GNUC__ >= 5
18#define MBGL_CONSTEXPR constexpr
19#else
20#define MBGL_CONSTEXPR inline
21#endif
22

source code of qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/util.hpp