Forgot to add mark.h

This commit is contained in:
Jesse Beder
2009-07-27 04:14:19 +00:00
parent b1ce042535
commit 1507fcd36d

16
include/mark.h Normal file
View 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_) {}
};
}