Skip to content

Commit

Permalink
Merge pull request #1462 from ra1u/master
Browse files Browse the repository at this point in the history
Allow user to define custom RAPIDJSON_NOEXCEPT_ASSERT macro
  • Loading branch information
miloyip committed Mar 11, 2019
2 parents 3cf4f7c + 40cae03 commit 091de04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/rapidjson/rapidjson.h
Expand Up @@ -607,6 +607,7 @@ RAPIDJSON_NAMESPACE_END
///////////////////////////////////////////////////////////////////////////////
// RAPIDJSON_NOEXCEPT_ASSERT

#ifndef RAPIDJSON_NOEXCEPT_ASSERT
#ifdef RAPIDJSON_ASSERT_THROWS
#if RAPIDJSON_HAS_CXX11_NOEXCEPT
#define RAPIDJSON_NOEXCEPT_ASSERT(x)
Expand All @@ -616,6 +617,7 @@ RAPIDJSON_NAMESPACE_END
#else
#define RAPIDJSON_NOEXCEPT_ASSERT(x) RAPIDJSON_ASSERT(x)
#endif // RAPIDJSON_ASSERT_THROWS
#endif // RAPIDJSON_NOEXCEPT_ASSERT

///////////////////////////////////////////////////////////////////////////////
// new/delete
Expand Down

0 comments on commit 091de04

Please sign in to comment.