33int main(
int argc,
char* argv[]) {
69 int* p = (
int*)0x12345678;
74#pragma GCC diagnostic push
75#if defined(__GNUC__) && (__GNUC__ >= 12)
76#pragma GCC diagnostic ignored "-Winfinite-recursion"
84#pragma GCC diagnostic pop
void cause_calamity(void)
void illegal_instruction(void)
void cause_segfault(void)
#define n_log(__LEVEL__,...)
Logging function wrapper to get line and func.
#define LOG_DEBUG
debug-level messages
#define LOG_STDERR
internal, default LOG_TYPE
void set_log_level(const int log_level)
Set the global log level value ( static int LOG_LEVEL )
void set_signal_handler(const char *progname)
Install a signal handler for progname.
Signals general handling with stack printing, from https://gist.github.com/jvranish/4441299.