Update of /cvsroot/jsoncpp/jsoncpp/src/lib_json
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26630/src/lib_json
Modified Files:
json_value.cpp
Log Message:
* fixed wrong assertions
* added rough implementation of Json::Path support.
Index: json_value.cpp
===================================================================
RCS file: /cvsroot/jsoncpp/jsoncpp/src/lib_json/json_value.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** json_value.cpp 27 Jul 2005 07:38:14 -0000 1.2
--- json_value.cpp 27 Jul 2005 22:25:57 -0000 1.3
***************
*** 4,8 ****
#define JSON_ASSERT_UNREACHABLE assert( false )
! #define JSON_ASSERT( condition )
namespace Json {
--- 4,8 ----
#define JSON_ASSERT_UNREACHABLE assert( false )
! #define JSON_ASSERT( condition ) assert( condition ); // @todo <= change this into an exception throw
namespace Json {
***************
*** 203,206 ****
--- 203,207 ----
case objectValue:
delete value_.map_;
+ break;
default:
JSON_ASSERT_UNREACHABLE;
***************
*** 393,397 ****
return 0;
case intValue:
- JSON_ASSERT( value_.int_ >= 0 && "Negative integer can not be converted to unsigned integer" );
return value_.int_;
case uintValue:
--- 394,397 ----
|