18 lines
223 B
C
18 lines
223 B
C
|
|
||
|
#include <stdarg.h>
|
||
|
#include "stand.h"
|
||
|
|
||
|
extern volatile void abort();
|
||
|
|
||
|
volatile void
|
||
|
panic(const char *fmt, ...)
|
||
|
{
|
||
|
va_list ap;
|
||
|
|
||
|
va_start(ap, fmt);
|
||
|
printf(fmt, ap);
|
||
|
printf("\n");
|
||
|
va_end(ap);
|
||
|
abort();
|
||
|
}
|