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.
sledge/runtime/include/panic.h

15 lines
248 B

#pragma once
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
__attribute__((noreturn)) void
panic(const char *format, ...)
{
va_list args;
va_start(args, format);
vfprintf(stderr, format, args);
va_end(args);
exit(EXIT_FAILURE);
}