Skip to content

Commit 0d95d58

Browse files
committed
Try to fix travis build
1 parent 6043ad8 commit 0d95d58

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/unittest/namespacetest.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
// CONDITIONS OF ANY KIND, either express or implied. See the License for the
1313
// specific language governing permissions and limitations under the License.
1414

15+
// Not throwing exception for this test
16+
#include <cassert>
17+
#define RAPIDJSON_ASSERT(x) assert(x)
18+
1519
#include "unittest.h"
1620

1721
// test another instantiation of RapidJSON in a different namespace

test/unittest/unittest.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ class AssertException : public std::logic_error {
117117
#pragma GCC diagnostic pop
118118
#endif
119119

120+
#ifndef RAPIDJSON_ASSERT
120121
#define RAPIDJSON_ASSERT(x) (!(x) ? throw AssertException(RAPIDJSON_STRINGIFY(x)) : (void)0u)
122+
#endif
121123

122124
class Random {
123125
public:

0 commit comments

Comments
 (0)