Put modules in ripple namespace

This commit is contained in:
Vinnie Falco
2013-06-27 13:41:20 -07:00
parent 8588587b71
commit 638656a597
35 changed files with 198 additions and 234 deletions

View File

@@ -30,15 +30,11 @@
#define JSON_ASSERT( condition ) assert( condition ); // @todo <= change this into an exception throw
#define JSON_ASSERT_MESSAGE( condition, message ) if (!( condition )) throw std::runtime_error( message );
#if RIPPLE_USE_NAMESPACE
namespace ripple
{
#endif
#include "json/json_reader.cpp"
#include "json/json_value.cpp"
#include "json/json_writer.cpp"
#if RIPPLE_USE_NAMESPACE
}
#endif

View File

@@ -25,6 +25,8 @@
#include <string>
#include <vector>
#include "BeastConfig.h"
#include "json/json_config.h" // Needed before these cpptl includes
#ifndef JSON_USE_CPPTL_SMALLMAP
@@ -37,10 +39,8 @@
# include <cpptl/forwards.h>
#endif
#if RIPPLE_USE_NAMESPACE
namespace ripple
{
#endif
#include "json/json_forwards.h"
#include "json/json_features.h"
@@ -48,8 +48,6 @@ namespace ripple
#include "json/json_reader.h"
#include "json/json_writer.h"
#if RIPPLE_USE_NAMESPACE
}
#endif
#endif