You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shuffle3/lean/src/panic.c

17 lines
377 B

#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <shuffle3.h>
__attribute__((noreturn, cold)) void _do_panic(struct panicinfo info, const char* fmt, ...)
{
va_list li;
va_start(li, fmt);
fprintf(stderr, "[!] (%s->%s:%d) fatal error: ", info.file, info.function, info.line);
vfprintf(stderr, fmt, li);
fprintf(stderr, "\n");
va_end(li);
abort();
}