summaryrefslogtreecommitdiffstats
path: root/jsoncpp-src-0.5.0/src/lib_json/json_reader.cpp
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-15 23:24:11 +0200
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-15 23:24:11 +0200
commitd21e4dacf7341b924fa534523ba31348ff6789ad (patch)
tree95a8b355c471cd2ab39e58f3d80b63d64ab8510a /jsoncpp-src-0.5.0/src/lib_json/json_reader.cpp
parentAdded temporary debug statistics of the RelEntMoveLook packet removal efficiency (diff)
downloadcuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar.gz
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar.bz2
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar.lz
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar.xz
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar.zst
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.zip
Diffstat (limited to 'jsoncpp-src-0.5.0/src/lib_json/json_reader.cpp')
-rw-r--r--jsoncpp-src-0.5.0/src/lib_json/json_reader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/jsoncpp-src-0.5.0/src/lib_json/json_reader.cpp b/jsoncpp-src-0.5.0/src/lib_json/json_reader.cpp
index 4eb2d11fd..7c94e612e 100644
--- a/jsoncpp-src-0.5.0/src/lib_json/json_reader.cpp
+++ b/jsoncpp-src-0.5.0/src/lib_json/json_reader.cpp
@@ -871,13 +871,13 @@ Reader::getFormatedErrorMessages() const
return formattedMessage;
}
-
+#define JSON_ASSERT( condition ) assert( condition );
std::istream& operator>>( std::istream &sin, Value &root )
{
Json::Reader reader;
bool ok = reader.parse(sin, root, true);
- //JSON_ASSERT( ok );
- if (!ok) throw std::runtime_error(reader.getFormatedErrorMessages());
+ JSON_ASSERT( ok );
+ //if (!ok) throw std::runtime_error(reader.getFormatedErrorMessages());
return sin;
}