1
0
Fork 0

When compiled in maintainer mode, print c-backtraces on Arango Exceptions too.

This commit is contained in:
Willi Goesgens 2014-08-25 10:27:25 +02:00
parent f6b424b833
commit f6b1433160
1 changed files with 10 additions and 0 deletions

View File

@ -44,6 +44,11 @@ Exception::Exception (int code,
_file(file), _file(file),
_line(line), _line(line),
_code(code) { _code(code) {
#ifdef TRI_ENABLE_MAINTAINER_MODE
#if HAVE_BACKTRACE
_backtrace();
#endif
#endif
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
@ -59,6 +64,11 @@ Exception::Exception (int code,
_file(file), _file(file),
_line(line), _line(line),
_code(code) { _code(code) {
#ifdef TRI_ENABLE_MAINTAINER_MODE
#if HAVE_BACKTRACE
_backtrace();
#endif
#endif
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////