mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-10 04:51:17 +00:00
Fixed the #ifdefs for the api stuff
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "yaml-cpp/null.h"
|
||||
|
||||
#if YAML_CPP_OLD_API
|
||||
#ifdef YAML_CPP_OLD_API
|
||||
#include "yaml-cpp/old-api/node.h"
|
||||
#endif
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace YAML
|
||||
{
|
||||
_Null Null;
|
||||
|
||||
#if YAML_CPP_OLD_API
|
||||
#ifdef YAML_CPP_OLD_API
|
||||
bool IsNull(const Node& node)
|
||||
{
|
||||
return node.Read(Null);
|
||||
|
@@ -9,7 +9,7 @@
|
||||
#include <sstream>
|
||||
#include <cstdio>
|
||||
|
||||
#if YAML_CPP_OLD_API
|
||||
#ifdef YAML_CPP_OLD_API
|
||||
#include "yaml-cpp/old-api/node.h"
|
||||
#include "old-api/nodebuilder.h"
|
||||
#endif
|
||||
@@ -58,7 +58,7 @@ namespace YAML
|
||||
return true;
|
||||
}
|
||||
|
||||
#if YAML_CPP_OLD_API
|
||||
#ifdef YAML_CPP_OLD_API
|
||||
// GetNextDocument
|
||||
// . Reads the next document in the queue (of tokens).
|
||||
// . Throws a ParserException on error.
|
||||
|
Reference in New Issue
Block a user