JsonCpp project page JsonCpp home page

Namespaces | Macros | Functions | Variables
json_value.cpp File Reference
#include <json/value.h>
#include <json/writer.h>
#include "json_batchallocator.h"
#include <iostream>
#include <utility>
#include <stdexcept>
#include <cstring>
#include <cassert>
#include <cstddef>
#include "json_internalarray.inl"
#include "json_internalmap.inl"
#include "json_valueiterator.inl"

Go to the source code of this file.

Namespaces

 Json
 JSON (JavaScript Object Notation).
 

Macros

#define JSON_ASSERT_UNREACHABLE   assert( false )
 
#define JSON_ASSERT(condition)   assert( condition );
 
#define JSON_FAIL_MESSAGE(message)   throw std::runtime_error( message );
 
#define JSON_ASSERT_MESSAGE(condition, message)   if (!( condition )) JSON_FAIL_MESSAGE( message )
 

Functions

static char * Json::duplicateStringValue (const char *value, unsigned int length=unknown)
 Duplicates the specified string value. More...
 
static void Json::releaseStringValue (char *value)
 Free the string duplicated by duplicateStringValue(). More...
 

Variables

static const unsigned int Json::unknown = (unsigned)-1
 Unknown size marker. More...
 

Macro Definition Documentation

#define JSON_ASSERT (   condition)    assert( condition );
#define JSON_ASSERT_MESSAGE (   condition,
  message 
)    if (!( condition )) JSON_FAIL_MESSAGE( message )
#define JSON_ASSERT_UNREACHABLE   assert( false )
#define JSON_FAIL_MESSAGE (   message)    throw std::runtime_error( message );

SourceForge Logo hosts this site. Send comments to:
Json-cpp Developers