comparison src/error.h @ 194:4f3364dcf450

[project @ 1993-11-03 21:37:59 by jwe]
author jwe
date Wed, 03 Nov 1993 21:38:05 +0000
parents de0e58f9b064
children a99f28f5e351
comparison
equal deleted inserted replaced
193:08a59c5cfa82 194:4f3364dcf450
30 30
31 #define panic_impossible() \ 31 #define panic_impossible() \
32 panic ("impossible state reached in file `%s' at line %d", \ 32 panic ("impossible state reached in file `%s' at line %d", \
33 __FILE__, __LINE__) 33 __FILE__, __LINE__)
34 34
35 // Tell g++ that panic doesn't return;
36
37 #ifdef __GNUG__
38 typedef void v_fcn_cpc_x (const char *, ...);
39 volatile v_fcn_cpc_x panic;
40 #endif
41
35 extern void message (const char *name, const char *fmt, ...); 42 extern void message (const char *name, const char *fmt, ...);
36 extern void usage (const char *fmt, ...); 43 extern void usage (const char *fmt, ...);
37 extern void warning (const char *fmt, ...); 44 extern void warning (const char *fmt, ...);
38 extern void error (const char *fmt, ...); 45 extern void error (const char *fmt, ...);
39 extern void panic (const char *fmt, ...); 46 extern void panic (const char *fmt, ...);