diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-04-25 16:17:50 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-04-25 16:17:50 +0200 |
commit | c4af692746181b5bb0ac50489555341feefd943c (patch) | |
tree | b8d90577668165489e7848ed38b4f19ed4cf8ba6 /odb/error.hxx | |
parent | 1a6a0652a6ef5b319cfc8ad05a0acee6910f7560 (diff) |
Use out own diagnostic functions to avoid bogus location context
Diffstat (limited to 'odb/error.hxx')
-rw-r--r-- | odb/error.hxx | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/odb/error.hxx b/odb/error.hxx new file mode 100644 index 0000000..2c3bd68 --- /dev/null +++ b/odb/error.hxx @@ -0,0 +1,29 @@ +// file : odb/error.hxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC +// license : GNU GPL v3; see accompanying LICENSE file + +#ifndef ODB_ERROR_HXX +#define ODB_ERROR_HXX + +#include <odb/gcc.hxx> + +#include <iostream> + +#include <cutl/fs/path.hxx> + +using std::endl; + +std::ostream& +error (cutl::fs::path const&, size_t line, size_t clmn); + +std::ostream& +error (location_t); + +inline std::ostream& +error () +{ + return error (input_location); +} + +#endif // ODB_ERROR_HXX |