File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
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
+
15
19
#include " unittest.h"
16
20
17
21
// test another instantiation of RapidJSON in a different namespace
Original file line number Diff line number Diff line change @@ -117,7 +117,9 @@ class AssertException : public std::logic_error {
117
117
#pragma GCC diagnostic pop
118
118
#endif
119
119
120
+ #ifndef RAPIDJSON_ASSERT
120
121
#define RAPIDJSON_ASSERT (x ) (!(x) ? throw AssertException (RAPIDJSON_STRINGIFY(x)) : (void )0u)
122
+ #endif
121
123
122
124
class Random {
123
125
public:
You can’t perform that action at this time.
0 commit comments