/************************************************************************** * * FILE global.c * Copyright (c) 2015 Daniel Kahlin * Written by Daniel Kahlin * * DESCRIPTION * Global functions. * ******/ #include #include #include #include "global.h" /* global variables */ int verbose_g; int debug_g; void panic(const char *str, ...) { va_list args; fprintf(stderr, "%s: ", program_g); va_start(args, str); vfprintf(stderr, str, args); va_end(args); fputc('\n', stderr); exit(1); } /* eof */