Free Electron
null.h
1 #ifndef NULL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
2 #define NULL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
3 
4 #if defined(_MSC_VER) || \
5  (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \
6  (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4
7 #pragma once
8 #endif
9 
10 #include "yaml-cpp/dll.h"
11 #include <string>
12 
13 namespace YAML {
14 class Node;
15 
16 struct YAML_CPP_API _Null {};
17 inline bool operator==(const _Null&, const _Null&) { return true; }
18 inline bool operator!=(const _Null&, const _Null&) { return false; }
19 
20 YAML_CPP_API bool IsNull(const Node& node); // old API only
21 YAML_CPP_API bool IsNullString(const std::string& str);
22 
23 extern YAML_CPP_API _Null Null;
24 }
25 
26 #endif // NULL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
Definition: anchor.h:12