mirror of
https://github.com/stupidcomputer/jsfw.git
synced 2024-12-27 05:47:37 -06:00
18 lines
272 B
C
18 lines
272 B
C
#include "util.h"
|
|
|
|
#include <stdarg.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#ifndef __has_builtin
|
|
#define __has_builtin(_) 0
|
|
#endif
|
|
|
|
void panicf(const char *fmt, ...) {
|
|
va_list args;
|
|
va_start(args, fmt);
|
|
vprintf(fmt, args);
|
|
va_end(args);
|
|
exit(1);
|
|
}
|