mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
jsoncpp: use own assert() macro which does not abort
This commit is contained in:
committed by
svenhoefer
parent
b307b78bf8
commit
73b5303cfc
@@ -68,6 +68,11 @@ license you like.
|
|||||||
// End of content of file: LICENSE
|
// 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)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -198,7 +198,7 @@ static inline void fixNumericLocale(char* begin, char* end) {
|
|||||||
#endif // if !defined(JSON_IS_AMALGAMATION)
|
#endif // if !defined(JSON_IS_AMALGAMATION)
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cassert>
|
//#include <cassert>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <istream>
|
#include <istream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
@@ -2223,7 +2223,7 @@ ValueIterator& ValueIterator::operator=(const SelfType& other) {
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <cassert>
|
//#include <cassert>
|
||||||
#ifdef JSON_USE_CPPTL
|
#ifdef JSON_USE_CPPTL
|
||||||
#include <cpptl/conststring.h>
|
#include <cpptl/conststring.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -3769,7 +3769,7 @@ Value& Path::make(Value& root) const {
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <cassert>
|
//#include <cassert>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user