mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-07 05:38:33 +02:00
src/system/stacktrace.cpp: Use dummy function for print_stacktrace()...
... and install_crash_handler() if HAVE_BACKTRACE is not defined
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user