aboutsummaryrefslogtreecommitdiff
path: root/include/rapidjson/rapidjson.h
diff options
context:
space:
mode:
authorCharles Milette <me@charlesmilette.net>2019-10-31 21:10:28 -0400
committerCharles Milette <me@charlesmilette.net>2019-10-31 21:10:28 -0400
commite54aca70066cbec9e988c7db1d29078b108041f1 (patch)
tree95e8fe2c331c081ee7ec96d47c2190b35be7f4bf /include/rapidjson/rapidjson.h
parent02230fecbf90c588e4100419a7346cb16c98bf27 (diff)
parentbb5f966b9939d6cdfbac3462a0410e185099b3af (diff)
downloadrapidjson-e54aca70066cbec9e988c7db1d29078b108041f1.tar.gz
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 62b079f..b71ea79 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).