Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:15:44

0001 #ifndef MARK_H_62B23520_7C8E_11DE_8A39_0800200C9A66
0002 #define MARK_H_62B23520_7C8E_11DE_8A39_0800200C9A66
0003 
0004 #if defined(_MSC_VER) ||                                            \
0005     (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \
0006      (__GNUC__ >= 4))  // GCC supports "pragma once" correctly since 3.4
0007 #pragma once
0008 #endif
0009 
0010 #include "yaml-cpp/dll.h"
0011 
0012 namespace YAML {
0013 struct YAML_CPP_API Mark {
0014   Mark() : pos(0), line(0), column(0) {}
0015 
0016   static const Mark null_mark() { return Mark(-1, -1, -1); }
0017 
0018   bool is_null() const { return pos == -1 && line == -1 && column == -1; }
0019 
0020   int pos;
0021   int line, column;
0022 
0023  private:
0024   Mark(int pos_, int line_, int column_)
0025       : pos(pos_), line(line_), column(column_) {}
0026 };
0027 }
0028 
0029 #endif  // MARK_H_62B23520_7C8E_11DE_8A39_0800200C9A66