From 887ce0c1d79e3a83d0c18d0641c4dd1402c633fc Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 1 Aug 2000 15:05:48 +0000 Subject: [PATCH] Use the CHECK macros from the common dir git-svn-id: svn://svn.cc65.org/cc65/trunk@249 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ar65/error.h | 24 ------------------------ src/ar65/objdata.c | 7 +++++-- 2 files changed, 5 insertions(+), 26 deletions(-) diff --git a/src/ar65/error.h b/src/ar65/error.h index 1f6823269..61d2a0394 100644 --- a/src/ar65/error.h +++ b/src/ar65/error.h @@ -43,19 +43,6 @@ -/*****************************************************************************/ -/* Data */ -/*****************************************************************************/ - - - -/* Messages for internal compiler errors */ -extern const char _MsgCheckFailed []; -extern const char _MsgPrecondition []; -extern const char _MsgFail []; - - - /*****************************************************************************/ /* Code */ /*****************************************************************************/ @@ -71,17 +58,6 @@ void Error (const char* Format, ...) attribute((format(printf,1,2))); void Internal (const char* Format, ...) attribute((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 */ diff --git a/src/ar65/objdata.c b/src/ar65/objdata.c index c2d830f8e..5c979e8f5 100644 --- a/src/ar65/objdata.c +++ b/src/ar65/objdata.c @@ -35,8 +35,11 @@ #include -#include "../common/xmalloc.h" - +/* common */ +#include "check.h" +#include "xmalloc.h" + +/* ar65 */ #include "error.h" #include "objdata.h" -- 2.39.5