blob: 5dab2a93c51a96b38cde71e00ef430ed7eb0a822 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// file : odb/error.cxx
// author : Boris Kolpackov <boris@codesynthesis.com>
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC
// license : GNU GPL v3; see accompanying LICENSE file
#include <odb/error.hxx>
using namespace std;
std::ostream&
error (cutl::fs::path const& p, size_t line, size_t clmn)
{
errorcount++;
cerr << p << ':' << line << ':' << clmn << ": error: ";
return cerr;
}
std::ostream&
error (location_t loc)
{
errorcount++;
cerr << LOCATION_FILE (loc) << ':'
<< LOCATION_LINE (loc) << ':'
<< LOCATION_COLUMN (loc) << ':'
<< " error: ";
return cerr;
}
|