File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 12
12
// CONDITIONS OF ANY KIND, either express or implied. See the License for the
13
13
// specific language governing permissions and limitations under the License.
14
14
15
- // Not throwing exception for this test
16
- #include < cassert>
17
- #define RAPIDJSON_ASSERT (x ) assert(x)
18
-
19
15
#include " unittest.h"
20
16
21
17
// test another instantiation of RapidJSON in a different namespace
Original file line number Diff line number Diff line change @@ -117,6 +117,9 @@ class AssertException : public std::logic_error {
117
117
#pragma GCC diagnostic pop
118
118
#endif
119
119
120
+ // Not using noexcept for testing RAPIDJSON_ASSERT()
121
+ #define RAPIDJSON_HAS_CXX11_NOEXCEPT 0
122
+
120
123
#ifndef RAPIDJSON_ASSERT
121
124
#define RAPIDJSON_ASSERT (x ) (!(x) ? throw AssertException (RAPIDJSON_STRINGIFY(x)) : (void )0u)
122
125
#endif
You can’t perform that action at this time.
0 commit comments