Update rapidjson.h

This commit is contained in:
Milo Yip 2018-09-10 13:11:17 +08:00 committed by GitHub
parent 8a96a95de2
commit 783b819e67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -603,14 +603,6 @@ RAPIDJSON_NAMESPACE_END
Defaults to C \c assert() (as \ref RAPIDJSON_ASSERT), if \c noexcept is
supported, and to \ref RAPIDJSON_ASSERT otherwise.
*/
#ifndef RAPIDJSON_NOEXCEPT_ASSERT
#if RAPIDJSON_HAS_CXX11_NOEXCEPT
#include <cassert>
#define RAPIDJSON_NOEXCEPT_ASSERT(x) assert(x)
#else
#define RAPIDJSON_NOEXCEPT_ASSERT(x) RAPIDJSON_ASSERT(x)
#endif // RAPIDJSON_HAS_CXX11_NOEXCEPT
#endif // RAPIDJSON_NOEXCEPT_ASSERT
///////////////////////////////////////////////////////////////////////////////
// RAPIDJSON_NOEXCEPT_ASSERT