Define NDEBUG if you don't want assertions

This commit is contained in:
ceriel
1993-10-22 14:30:43 +00:00
parent c0a8a2c36f
commit 144e3edfb2
17 changed files with 22 additions and 5 deletions

View File

@@ -84,6 +84,7 @@
!File: debug.h
/*#define DEBUG 1 /* perform various self-tests */
#define NDEBUG 1 /* disable assertions */
!File: use_tmp.h

View File

@@ -84,6 +84,7 @@
!File: debug.h
/*#define DEBUG 1 /* perform various self-tests */
#define NDEBUG 1 /* disable assertions */
!File: use_tmp.h

View File

@@ -29,6 +29,7 @@
#include "dbsymtab.h"
#ifdef DBSYMTAB
#include <stb.h>
#include <em.h>
int IncludeLevel = 0;
extern char options[];
#endif
@@ -298,7 +299,7 @@ do_include()
#ifdef DBSYMTAB
IncludeLevel++;
if (options['g']) {
C_ms_std(FileName, N_BINCL, 0);
C_ms_stb_cst(FileName, N_BINCL, 0, (arith) 0);
}
#endif /* DBSYMTAB */
}

View File

@@ -18,7 +18,8 @@ extern int nestlevel;
#include "dbsymtab.h"
#ifndef NOPP
#ifdef DBSYMTAB
#include <stb.h>
#include <stb.h>
#include <em.h>
extern int IncludeLevel;
extern char options[];
#endif
@@ -73,7 +74,7 @@ AtEoIF()
nestlevel = nestlow;
#ifdef DBSYMTAB
if (options['g'] && IncludeLevel > 0) {
C_ms_std(FileName, N_EINCL, 0);
C_ms_stb_cst(FileName, N_EINCL, 0, (arith) 0);
}
IncludeLevel--;
#endif