Another try to fix travis build
This commit is contained in:
parent
62e785babf
commit
d48290e387
|
@ -12,10 +12,6 @@
|
|||
// CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
||||
// specific language governing permissions and limitations under the License.
|
||||
|
||||
// Not throwing exception for this test
|
||||
#include <cassert>
|
||||
#define RAPIDJSON_ASSERT(x) assert(x)
|
||||
|
||||
#include "unittest.h"
|
||||
|
||||
// test another instantiation of RapidJSON in a different namespace
|
||||
|
|
|
@ -117,6 +117,9 @@ public:
|
|||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
// Not using noexcept for testing RAPIDJSON_ASSERT()
|
||||
#define RAPIDJSON_HAS_CXX11_NOEXCEPT 0
|
||||
|
||||
#ifndef RAPIDJSON_ASSERT
|
||||
#define RAPIDJSON_ASSERT(x) (!(x) ? throw AssertException(RAPIDJSON_STRINGIFY(x)) : (void)0u)
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue