error_handling.cc 393 Bytes
Newer Older
Martin Reinecke's avatar
Martin Reinecke committed
1
#include "mr_util/error_handling.h"
Martin Reinecke's avatar
Martin Reinecke committed
2
3
4

using namespace std;

Martin Reinecke's avatar
Martin Reinecke committed
5
6
7
8
9
10
namespace mr {

namespace error_handling {

namespace detail {

Martin Reinecke's avatar
Martin Reinecke committed
11
12
13
14
15
16
17
18
19
20
21
22
23
24
bool abort_in_progress__ = false;

ostream &CodeLocation::print(ostream &os) const
  {
  os << "file: " << file <<  ", line: " <<  line;
  if (func) os << ", function: " << func;
  return os;
  }

void killjob__()
  {
  // perhaps print stack trace?
  exit(1);
  }
Martin Reinecke's avatar
Martin Reinecke committed
25
26

}}}