jsoncpp: use own assert() macro which does not abort

This commit is contained in:
Stefan Seyfried
2016-01-10 19:35:09 +01:00
parent 25e6f0e820
commit 80d65e33ed
2 changed files with 8 additions and 3 deletions

View File

@@ -68,6 +68,11 @@ license you like.
// End of content of file: LICENSE
// //////////////////////////////////////////////////////////////////////
/* own assert() which does not abort... */
#define assert(x) do { \
if (x) \
fprintf(stderr, "JSONCPP:%s:%d assert(%s) failed\n", __func__, __LINE__, #x); \
} while (0)