diff options
author | Charles Milette <me@charlesmilette.net> | 2019-10-31 21:10:28 -0400 |
---|---|---|
committer | Charles Milette <me@charlesmilette.net> | 2019-10-31 21:10:28 -0400 |
commit | e54aca70066cbec9e988c7db1d29078b108041f1 (patch) | |
tree | 95e8fe2c331c081ee7ec96d47c2190b35be7f4bf /include/rapidjson/rapidjson.h | |
parent | 02230fecbf90c588e4100419a7346cb16c98bf27 (diff) | |
parent | bb5f966b9939d6cdfbac3462a0410e185099b3af (diff) | |
download | rapidjson-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.h | 13 |
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). |