1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00

Minor adjustment in the way lines are outputted in debugging information.

This commit is contained in:
Sandu Liviu Catalin 2015-11-11 11:41:02 +02:00
parent 3b729cd73d
commit d6b964d82c

View File

@ -251,19 +251,19 @@ void Debug::InternalTrace()
{
if (m_Func.at(0) == '@')
{
_Log->SInf(" > 1 [ %s:%d > %s::%s ]", si.source ? si.source : _SC("unknown"),
_Log->SInf(" > 1 [ %s(%d) > %s::%s ]", si.source ? si.source : _SC("unknown"),
si.line, m_Type.c_str(), m_Func.c_str()+1);
}
else
{
_Log->SInf(" > 1 [ %s:%d > %s::%s(...) ]", si.source ? si.source : _SC("unknown"),
_Log->SInf(" > 1 [ %s(%d) > %s::%s(...) ]", si.source ? si.source : _SC("unknown"),
si.line, m_Type.c_str(), m_Func.c_str());
}
}
// Keep outputting traceback information for the rest of the function calls
for (SQInt32 level = 2; SQ_SUCCEEDED(sq_stackinfos(m_VM, level, &si)); ++level)
{
_Log->SInf(" > %d [ %s:%d > %s::%s(...) ]", level, si.source ? si.source : _SC("unknown"),
_Log->SInf(" > %d [ %s(%d) > %s::%s(...) ]", level, si.source ? si.source : _SC("unknown"),
si.line, EnvName(level).c_str(), si.funcname ? si.funcname : _SC("unknown"));
}
}