Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CoMISo
Base
Commits
af998d8d
Commit
af998d8d
authored
Nov 03, 2015
by
Martin Marinov
Browse files
Some more minor changes to the Debug system.
[git-p4: depot-paths = "//ReForm/ReForm/main/Base/": change = 13176]
parent
fe68dbb8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Debug/DebOut.hh
View file @
af998d8d
...
...
@@ -79,7 +79,7 @@ public:
~
Enter
();
//! pass the output on the level or not?
bool
pass
(
const
int
_lvl
)
const
{
return
_lvl
<
lvl_
;
}
bool
pass
(
const
int
_lvl
)
const
{
return
_lvl
<
=
lvl_
;
}
Stream
&
stream
(
const
int
_warn
=
0
,
const
bool
_print
=
true
);
...
...
Debug/DebStream.cc
View file @
af998d8d
...
...
@@ -802,6 +802,8 @@ Enter::Enter(const char* const _flnm, const char* const _fnct,
int
&
_nmbr
,
int
&
_lvl
)
:
flnm_
(
_flnm
),
outs_
(
0
),
lns_
(
0
)
{
// TODO: for thread-safety we will need to make the constructor body atomic!
stream
(
0
,
false
).
dfile
()
->
call_stack
().
add
(
_fnct
,
this
);
nmbr_
=
_nmbr
++
;
if
(
_lvl
==
INVALID_LEVEL
)
...
...
@@ -810,8 +812,6 @@ Enter::Enter(const char* const _flnm, const char* const _fnct,
static
int
id_cnt
=
0
;
id_
=
++
id_cnt
;
stream
(
0
,
false
).
dfile
()
->
call_stack
().
add
(
_fnct
,
this
);
}
Enter
::~
Enter
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment