| 8 | namespace crash_handler_noop { |
| 9 | |
| 10 | inline void print_stacktrace_noop() { |
| 11 | printf("Stack trace (no-op): Stack trace functionality not available\n"); |
| 12 | printf(" Compile with one of the following to enable stack traces:\n"); |
| 13 | printf(" - Windows: Automatically enabled on Windows builds\n"); |
| 14 | printf(" - libunwind: Define USE_LIBUNWIND and link with -lunwind\n"); |
| 15 | printf(" - execinfo: Available on most Unix-like systems with glibc\n"); |
| 16 | } |
| 17 | |
| 18 | inline void crash_handler(int sig) { |
| 19 | fprintf(stderr, "Error: signal %d:\n", sig); |
no test coverage detected