Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Milette <me@charlesmilette.net>2019-11-01 04:10:28 +0300
committerCharles Milette <me@charlesmilette.net>2019-11-01 04:10:28 +0300
commite54aca70066cbec9e988c7db1d29078b108041f1 (patch)
tree95e8fe2c331c081ee7ec96d47c2190b35be7f4bf /include/rapidjson/rapidjson.h
parent02230fecbf90c588e4100419a7346cb16c98bf27 (diff)
parentbb5f966b9939d6cdfbac3462a0410e185099b3af (diff)
Merge branch 'master' of https://github.com/Tencent/rapidjson
Diffstat (limited to 'include/rapidjson/rapidjson.h')
-rw-r--r--include/rapidjson/rapidjson.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/rapidjson/rapidjson.h b/include/rapidjson/rapidjson.h
index 62b079f2..b71ea79b 100644
--- a/include/rapidjson/rapidjson.h
+++ b/include/rapidjson/rapidjson.h
@@ -597,6 +597,19 @@ RAPIDJSON_NAMESPACE_END
#endif
#endif // RAPIDJSON_HAS_CXX11_RANGE_FOR
+///////////////////////////////////////////////////////////////////////////////
+// C++17 features
+
+#if defined(__has_cpp_attribute)
+# if __has_cpp_attribute(fallthrough)
+# define RAPIDJSON_DELIBERATE_FALLTHROUGH [[fallthrough]]
+# else
+# define RAPIDJSON_DELIBERATE_FALLTHROUGH
+# endif
+#else
+# define RAPIDJSON_DELIBERATE_FALLTHROUGH
+#endif
+
//!@endcond
//! Assertion (in non-throwing contexts).