My Project
Loading...
Searching...
No Matches
factory
debug.cc
Go to the documentation of this file.
1
/* emacs edit mode for this file is -*- C++ -*- */
2
#include "
globaldefs.h
"
3
4
STATIC_VAR
int
deb_level
= -1;
5
VAR
char
*
deb_level_msg
= (
char
*)
""
;
6
7
void
deb_inc_level
()
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
}
23
24
void
deb_dec_level
()
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
}
i
int i
Definition:
cfEzgcd.cc:132
deb_level_msg
VAR char * deb_level_msg
Definition:
debug.cc:5
deb_dec_level
void deb_dec_level()
Definition:
debug.cc:24
deb_level
STATIC_VAR int deb_level
Definition:
debug.cc:4
deb_inc_level
void deb_inc_level()
Definition:
debug.cc:7
globaldefs.h
STATIC_VAR
#define STATIC_VAR
Definition:
globaldefs.h:7
VAR
#define VAR
Definition:
globaldefs.h:5
Generated on Mon Feb 27 2023 10:53:48 for My Project by
doxygen 1.9.5
for
Singular