Define NDEBUG if you don't want assertions

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

View file

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

View file

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

View file

@ -47,6 +47,7 @@
!File: debugcst.h !File: debugcst.h
/*#define DEBUG 1 /* perform various self-tests */ /*#define DEBUG 1 /* perform various self-tests */
#define NDEBUG 1 /* disable assertions */
!File: inputtype.h !File: inputtype.h
#define INP_READ_IN_ONE 1 /* read input file in one */ #define INP_READ_IN_ONE 1 /* read input file in one */

View file

@ -1,5 +1,6 @@
!File: debugcst.h !File: debugcst.h
/*#define DEBUG 1 /* perform various self-tests */ /*#define DEBUG 1 /* perform various self-tests */
#define NDEBUG 1 /* disable assertions */
!File: density.h !File: density.h

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -46,6 +46,7 @@
!File: debugcst.h !File: debugcst.h
/*#define DEBUG 1 /* perform various self-tests */ /*#define DEBUG 1 /* perform various self-tests */
#define NDEBUG 1 /* disable assertions */
!File: inputtype.h !File: inputtype.h
#define INP_READ_IN_ONE 1 /* read input file in one */ #define INP_READ_IN_ONE 1 /* read input file in one */

View file

@ -47,6 +47,7 @@
!File: debugcst.h !File: debugcst.h
/*#define DEBUG 1 /* perform various self-tests */ /*#define DEBUG 1 /* perform various self-tests */
#define NDEBUG 1 /* disable assertions */
!File: inputtype.h !File: inputtype.h
/*#define INP_READ_IN_ONE 1 /* read input file in one */ /*#define INP_READ_IN_ONE 1 /* read input file in one */

View file

@ -1,5 +1,6 @@
!File: debugcst.h !File: debugcst.h
/*#define DEBUG 1 /* perform various self-tests */ /*#define DEBUG 1 /* perform various self-tests */
#define NDEBUG 1 /* disable assertions */
!File: density.h !File: density.h

View file

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