src/system/stacktrace.cpp: Use dummy function for print_stacktrace()...

... and install_crash_handler() if HAVE_BACKTRACE is not defined


Origin commit data
------------------
Commit: 8340534ee4
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-03-13 (Mon, 13 Mar 2017)
This commit is contained in:
Michael Liebmann
2017-03-13 23:57:57 +01:00
parent 8a9fcfeb55
commit ec9341770a

View File

@@ -176,5 +176,14 @@ void install_crash_handler()
void *trace[16];
backtrace(trace, 16);
}
#else
void print_stacktrace(FILE *out = stderr, unsigned int max_frames = 63)
{
(void) out;
(void) max_frames;
}
void install_crash_handler()
{
}
#endif