diff options
Diffstat (limited to 'bytecode/panic.c')
| -rw-r--r-- | bytecode/panic.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bytecode/panic.c b/bytecode/panic.c new file mode 100644 index 0000000..db2b6f8 --- /dev/null +++ b/bytecode/panic.c @@ -0,0 +1,15 @@ +#include <stdarg.h> +#include <stdio.h> +#include <stdlib.h> + +#include "panic.h" + +void panicf(const char *format, ...) +{ + va_list ap; + va_start(ap, format); + vfprintf(stderr, format, ap); + va_end(ap); + + exit(1); +} |
