Commit af998d8d authored by Martin Marinov's avatar Martin Marinov

Some more minor changes to the Debug system.

[git-p4: depot-paths = "//ReForm/ReForm/main/Base/": change = 13176]
parent fe68dbb8
......@@ -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);
......
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment