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

17 lines
296 B

#pragma once
#include <assert.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
__attribute__((noreturn, format(printf, 1, 2))) static inline void
panic(const char *format, ...)
{
va_list args;
va_start(args, format);
vfprintf(stderr, format, args);
va_end(args);
assert(0);
}