Commit fee2d2d2 authored by Martin Marinov's avatar Martin Marinov
Browse files

Fixed a bug in the CallStack printout

parent 9ed8c428
......@@ -30,10 +30,10 @@ void append_function(std::string& _str, const char* const _func)
// Add to the string the call stack element string
void append_entry(std::string& _str, const Enter* const _entr,
const bool _cmpct_tmpl, const bool _entr_nmbr, const Enter* const _prev_entr)
const bool _cmpct, const bool _entr_nmbr, const Enter* const _prev_entr)
{
if (_prev_entr != nullptr && // there is a previous entry and it is the same?
strcmp(_prev_entr->function(), _entr->function()) != 0)
strcmp(_prev_entr->function(), _entr->function()) == 0)
{// ... so do nothing
return;
}
......@@ -41,7 +41,7 @@ void append_entry(std::string& _str, const Enter* const _entr,
if (_prev_entr != nullptr)
_str.append("/");
if (_cmpct_tmpl)
if (_cmpct)
append_function(_str, _entr->function());
else
_str.append(_entr->function());
......
Supports Markdown
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