aboutsummaryrefslogtreecommitdiff
path: root/odb/location.hxx
blob: 45bb4f864b08fe5837c299f315dd57fffac5ede1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// file      : odb/location.hxx
// copyright : Copyright (c) 2009-2013 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
{
  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