mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
Forgot to add mark.h
This commit is contained in:
16
include/mark.h
Normal file
16
include/mark.h
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
namespace YAML
|
||||||
|
{
|
||||||
|
struct Mark {
|
||||||
|
Mark(): pos(0), line(0), column(0) {}
|
||||||
|
|
||||||
|
static const Mark null() { return Mark(-1, -1, -1); }
|
||||||
|
|
||||||
|
int pos;
|
||||||
|
int line, column;
|
||||||
|
|
||||||
|
private:
|
||||||
|
Mark(int pos_, int line_, int column_): pos(pos_), line(line_), column(column_) {}
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user