error_handling.cc 316 Bytes
Newer Older
Martin Reinecke's avatar
Martin Reinecke committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "error_handling.h"

using namespace std;

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);
  }