summaryrefslogtreecommitdiff
path: root/odb/diagnostics.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/diagnostics.hxx')
-rw-r--r--odb/diagnostics.hxx20
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);