From 923639283d2bae0b82cb605fa4680a3058c9d973 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 25 Jul 2012 12:13:38 +0200 Subject: Add support for defining indexes New db pragma qualifier: index. New tests: common/index, mysql/index, pgsql/index. --- odb/diagnostics.hxx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'odb/diagnostics.hxx') 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 +#include + 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); -- cgit v1.1