Switch ego to libc <assert.h>
I also tried, in types.h, to switch ego to libc <stdbool.h>, but that causes an infinite loop in the IL phase.
This commit is contained in:
parent
9037d137f5
commit
d99a0682fc
2 changed files with 4 additions and 12 deletions
|
@ -65,11 +65,6 @@ void OUTVERBOSE(const char *s, int n1, int n2)
|
|||
|
||||
|
||||
#ifdef DEBUG
|
||||
badassertion(file,line) char *file; unsigned line; {
|
||||
|
||||
fprintf(stderr,"assertion failed file %s, line %u\n",file,line);
|
||||
error("assertion");
|
||||
}
|
||||
/* Valid Address */
|
||||
|
||||
void VA(short *a) {
|
||||
|
|
|
@ -34,8 +34,6 @@ void OUTVERBOSE(const char *, int, int);
|
|||
|
||||
#define STATIC
|
||||
|
||||
#define assert(x) if(!(x)) badassertion(__FILE__,__LINE__)
|
||||
|
||||
void VI(short);
|
||||
void VL(line_p);
|
||||
void VD(dblock_p);
|
||||
|
@ -43,11 +41,10 @@ void VA(short *);
|
|||
void VO(obj_p);
|
||||
void VP(proc_p);
|
||||
|
||||
|
||||
|
||||
#else /*DEBUG*/
|
||||
|
||||
#define assert(b)
|
||||
#define STATIC static
|
||||
#define NDEBUG /* disable assert() */
|
||||
|
||||
#define VI(i)
|
||||
#define VL(l)
|
||||
|
@ -56,6 +53,6 @@ void VP(proc_p);
|
|||
#define VO(o)
|
||||
#define VP(p)
|
||||
|
||||
|
||||
#define STATIC static
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
|
|
Loading…
Reference in a new issue