/*****************************************************************************/
/* */
-/* global.h */
+/* global.h */
/* */
-/* Error handling for the ar65 archiver */
+/* Error handling for the ar65 archiver */
/* */
/* */
/* */
-/* (C) 1998 Ullrich von Bassewitz */
-/* Wacholderweg 14 */
-/* D-70597 Stuttgart */
-/* EMail: uz@musoftware.de */
+/* (C) 1998-2003 Ullrich von Bassewitz */
+/* Römerstrasse 52 */
+/* D-70794 Filderstadt */
+/* EMail: uz@cc65.org */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */
/*****************************************************************************/
-/* Data */
-/*****************************************************************************/
-
-
-
-/* Messages for internal compiler errors */
-extern const char _MsgCheckFailed [];
-extern const char _MsgPrecondition [];
-extern const char _MsgFail [];
-
-
-
-/*****************************************************************************/
-/* Code */
+/* Code */
/*****************************************************************************/
void Warning (const char* Format, ...) attribute((format(printf,1,2)));
/* Print a warning message */
-void Error (const char* Format, ...) attribute((format(printf,1,2)));
+void Error (const char* Format, ...) attribute((noreturn, format(printf,1,2)));
/* Print an error message and die */
-void Internal (const char* Format, ...) attribute((format(printf,1,2)));
+void Internal (const char* Format, ...) attribute((noreturn, format(printf,1,2)));
/* Print an internal error message and die */
-#define CHECK(c) \
- if (!(c)) \
- Internal (_MsgCheckFailed, #c, c, __FILE__, __LINE__)
-
-#define PRECONDITION(c) \
- if (!(c)) \
- Internal (_MsgPrecondition, #c, c, __FILE__, __LINE__)
-
-#define FAIL(s) \
- Internal (_MsgFail, s, __FILE__, __LINE__)
-
/* End of error.h */
#endif
-
-
-