diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-07-25 12:13:38 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-07-27 10:30:15 +0200 |
commit | 923639283d2bae0b82cb605fa4680a3058c9d973 (patch) | |
tree | 3c122b70129cdd2b502e1f7056eac896c109f03a /odb/diagnostics.hxx | |
parent | adfa9bbd04cd3571932ee7675344ca723bfa1eab (diff) |
Add support for defining indexes
New db pragma qualifier: index. New tests: common/index, mysql/index,
pgsql/index.
Diffstat (limited to 'odb/diagnostics.hxx')
-rw-r--r-- | odb/diagnostics.hxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/odb/diagnostics.hxx b/odb/diagnostics.hxx index a7dd575..b1e89b0 100644 --- a/odb/diagnostics.hxx +++ b/odb/diagnostics.hxx @@ -12,6 +12,8 @@ #include <cutl/fs/path.hxx> +#include <odb/location.hxx> + using std::endl; std::ostream& @@ -23,6 +25,24 @@ warn (cutl::fs::path const&, std::size_t line, std::size_t clmn); std::ostream& info (cutl::fs::path const&, std::size_t line, std::size_t clmn); +inline std::ostream& +error (location const& l) +{ + return error (l.file, l.line, l.column); +} + +inline std::ostream& +warn (location const&l) +{ + return warn (l.file, l.line, l.column); +} + +inline std::ostream& +info (location const&l) +{ + return info (l.file, l.line, l.column); +} + std::ostream& error (location_t); |