My Project
Loading...
Searching...
No Matches
Functions | Variables
debug.cc File Reference
#include "globaldefs.h"

Go to the source code of this file.

Functions

void deb_inc_level ()
 
void deb_dec_level ()
 

Variables

STATIC_VAR int deb_level = -1
 
VAR char * deb_level_msg = (char *)""
 

Function Documentation

◆ deb_dec_level()

void deb_dec_level ( )

Definition at line 24 of file debug.cc.

25{
26 if ( deb_level > 0 ) {
27 int i;
28 deb_level--;
29 delete [] deb_level_msg;
30 deb_level_msg = new char[3*deb_level+1];
31 for ( i = 0; i < 3*deb_level; i++ )
32 deb_level_msg[i] = ' ';
33 deb_level_msg[3*deb_level] = '\0';
34 }
35}
int i
Definition: cfEzgcd.cc:132
VAR char * deb_level_msg
Definition: debug.cc:5
STATIC_VAR int deb_level
Definition: debug.cc:4

◆ deb_inc_level()

void deb_inc_level ( )

Definition at line 7 of file debug.cc.

8{
9 int i;
10
11 // deb_level == -1 iff we enter this function for the first time
12 if ( deb_level == -1 )
13 deb_level = 0;
14 else
15 delete [] deb_level_msg;
16
17 deb_level++;
18 deb_level_msg = new char[3*deb_level+1];
19 for ( i = 0; i < 3*deb_level; i++ )
20 deb_level_msg[i] = ' ';
21 deb_level_msg[3*deb_level] = '\0';
22}

Variable Documentation

◆ deb_level

STATIC_VAR int deb_level = -1

Definition at line 4 of file debug.cc.

◆ deb_level_msg

VAR char* deb_level_msg = (char *)""

Definition at line 5 of file debug.cc.