mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-04-21 00:11:50 +02:00
Added line breaks to make error messages easier to read.
This commit is contained in:
parent
e91a68cb9e
commit
7b5edd9859
@ -18,7 +18,7 @@
|
|||||||
#define JSON_FAIL_MESSAGE( message ) throw std::runtime_error( message );
|
#define JSON_FAIL_MESSAGE( message ) throw std::runtime_error( message );
|
||||||
#else // defined(JSON_USE_EXCEPTION)
|
#else // defined(JSON_USE_EXCEPTION)
|
||||||
#define JSON_ASSERT( condition ) assert( condition );
|
#define JSON_ASSERT( condition ) assert( condition );
|
||||||
#define JSON_FAIL_MESSAGE( message ) { std::cerr << message; exit(123); }
|
#define JSON_FAIL_MESSAGE( message ) { std::cerr << std::endl << message << std::endl; exit(123); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define JSON_ASSERT_MESSAGE( condition, message ) if (!( condition )) { JSON_FAIL_MESSAGE( message ) }
|
#define JSON_ASSERT_MESSAGE( condition, message ) if (!( condition )) { JSON_FAIL_MESSAGE( message ) }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user