1995-02-15 01:56:36 +03:00
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include "stand.h"
|
|
|
|
|
1996-01-30 02:41:03 +03:00
|
|
|
extern __dead void abort();
|
1995-02-15 01:56:36 +03:00
|
|
|
|
1996-01-30 02:41:03 +03:00
|
|
|
__dead void
|
1995-02-15 01:56:36 +03:00
|
|
|
panic(const char *fmt, ...)
|
|
|
|
{
|
1996-01-30 02:41:03 +03:00
|
|
|
va_list ap;
|
1995-02-15 01:56:36 +03:00
|
|
|
|
1996-01-30 02:41:03 +03:00
|
|
|
va_start(ap, fmt);
|
|
|
|
vprintf(fmt, ap);
|
|
|
|
printf("\n");
|
|
|
|
va_end(ap);
|
1995-02-15 01:56:36 +03:00
|
|
|
abort();
|
|
|
|
}
|