1#include <stdarg.h>
2#include <stdio.h>
3#include <stdlib.h>
4
5#include "include/pw_assert.h"
6
7[[noreturn]]
8void pw_panic(char* fmt, ...)
9{
10 va_list ap;
11 va_start(ap);
12 vfprintf(stderr, fmt, ap);
13 va_end(ap);
14 abort();
15}