summaryrefslogtreecommitdiff
path: root/odb/error.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-09-16 16:03:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-09-16 16:03:25 +0200
commitb79567fbc72df23f870049652d5f254aba948bea (patch)
tree186168269cf249ce97be89fd02aab4c75e83574c /odb/error.hxx
parentd780414989ef7e101cdaf269d4b01003d0721e6a (diff)
Support for views; integrated part
Diffstat (limited to 'odb/error.hxx')
-rw-r--r--odb/error.hxx41
1 files changed, 34 insertions, 7 deletions
diff --git a/odb/error.hxx b/odb/error.hxx
index 2c3bd68..781cbc8 100644
--- a/odb/error.hxx
+++ b/odb/error.hxx
@@ -6,8 +6,9 @@
#ifndef ODB_ERROR_HXX
#define ODB_ERROR_HXX
-#include <odb/gcc.hxx>
+#include <odb/gcc-fwd.hxx>
+#include <cstddef>
#include <iostream>
#include <cutl/fs/path.hxx>
@@ -15,15 +16,41 @@
using std::endl;
std::ostream&
-error (cutl::fs::path const&, size_t line, size_t clmn);
+error (cutl::fs::path const&, std::size_t line, std::size_t clmn);
+
+std::ostream&
+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);
std::ostream&
error (location_t);
-inline std::ostream&
-error ()
-{
- return error (input_location);
-}
+std::ostream&
+warn (location_t);
+
+std::ostream&
+info (location_t);
+
+std::ostream&
+error ();
+
+std::ostream&
+warn ();
+
+std::ostream&
+info ();
+
+// location_t macro wrappers.
+//
+cutl::fs::path
+location_file (location_t);
+
+std::size_t
+location_line (location_t);
+
+std::size_t
+location_column (location_t);
#endif // ODB_ERROR_HXX