X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fod65%2Ferror.h;h=af5c907fd9e993b190cfc5e46d89ebc1281d4bf7;hb=35e1184901ca38bdb2e56d154ed3b71f6096eacc;hp=d434cd4c780ce6b600c058b39e5dde780163d4a5;hpb=8f320c4ab47b89210ceaaa9e832fc6c92befc71e;p=cc65 diff --git a/src/od65/error.h b/src/od65/error.h index d434cd4c7..af5c907fd 100644 --- a/src/od65/error.h +++ b/src/od65/error.h @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (C) 1998-2000 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 */ @@ -43,19 +43,6 @@ -/*****************************************************************************/ -/* Data */ -/*****************************************************************************/ - - - -/* Messages for internal compiler errors */ -extern const char _MsgCheckFailed []; -extern const char _MsgPrecondition []; -extern const char _MsgFail []; - - - /*****************************************************************************/ /* Code */ /*****************************************************************************/ @@ -65,23 +52,12 @@ extern const char _MsgFail []; 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 */