diff options
Diffstat (limited to 'odb/location.hxx')
-rw-r--r-- | odb/location.hxx | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/odb/location.hxx b/odb/location.hxx new file mode 100644 index 0000000..a9cc6ad --- /dev/null +++ b/odb/location.hxx @@ -0,0 +1,28 @@ +// file : odb/location.hxx +// copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC +// license : GNU GPL v3; see accompanying LICENSE file + +#ifndef ODB_LOCATION_HXX +#define ODB_LOCATION_HXX + +#include <odb/gcc-fwd.hxx> + +#include <cstddef> +#include <cutl/fs/path.hxx> + +struct location +{ + explicit + location (location_t); + + location (cutl::fs::path const& f, std::size_t l, std::size_t c) + : file (f), line (l), column (c) + { + } + + cutl::fs::path file; + std::size_t line; + std::size_t column; +}; + +#endif // ODB_LOCATION_HXX |