pgRouting  2.2
pgRouting extends the PostGIS / PostgreSQL geospatial database to provide geospatial routing functionality.
 All Classes Functions Variables Pages
pgr_assert.cpp
1 /*PGR-MIT******************************************************************
2  *
3  * file pgr_assert.cpp
4  *
5  * Copyright 2014 Stephen Woodbridge <woodbri@imaptools.com>
6  * Copyright 2014 Vicky Vergara <vicky_vergara@hotmail.com>
7  *
8  * This is free software; you can redistribute and/or modify it under
9  * the terms of the MIT License. Please file MIT-LICENSE for details.
10  *
11  *****************************************************************PGR-MIT*/
12 #include "./pgr_assert.h"
13 #include <exception>
14 
15 #ifdef assert
16 #undef assert
17 #endif
18 
19 #ifndef __STRING
20 #define __STRING(x) #x
21 #endif
22 
23 #define __TOSTRING(x) __STRING(x)
24 
25 
26 const char *AssertFailedException::what() const throw() {
27  return str;
28 }
29 
30 AssertFailedException::AssertFailedException(const char *_str) :
31  str(_str) {}
32 
33 
const char * str
str Holds the what() string for the exception.
Definition: pgr_assert.h:84