diff options
Diffstat (limited to 'odb/odb/location.hxx')
-rw-r--r-- | odb/odb/location.hxx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/odb/odb/location.hxx b/odb/odb/location.hxx new file mode 100644 index 0000000..cc59196 --- /dev/null +++ b/odb/odb/location.hxx @@ -0,0 +1,25 @@ +// file : odb/location.hxx +// license : GNU GPL v3; see accompanying LICENSE file + +#ifndef ODB_LOCATION_HXX +#define ODB_LOCATION_HXX + +#include <odb/gcc-fwd.hxx> + +#include <cstddef> +#include <libcutl/fs/path.hxx> + +struct location +{ + 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 |