1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-21 17:47:13 +02:00

Improve the debug information provided by the logger. Include value, size, type and other useful information where possible.

This commit is contained in:
Sandu Liviu Catalin
2019-05-17 22:54:08 +03:00
parent 7ad3790f8c
commit d52507e824
3 changed files with 115 additions and 23 deletions

View File

@ -1661,7 +1661,7 @@ struct StackStrF
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
StackStrF(HSQUIRRELVM vm, SQInteger idx)
: mPtr(_SC(""))
, mLen(SQ_ERROR)
, mLen(0)
, mRes(SQ_OK)
, mObj()
, mVM(vm)
@ -1741,9 +1741,9 @@ struct StackStrF
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Release any object references.
/// Release any object references and assign a new target if necessary, then return self for chaining.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void Release()
StackStrF & Release(HSQUIRRELVM vm = nullptr, SQInteger idx = -1)
{
if (!sq_isnull(mObj))
{
@ -1752,9 +1752,10 @@ struct StackStrF
mPtr = _SC("");
mLen = 0;
mRes = SQ_OK;
mVM = nullptr;
mIdx = -1;
mVM = vm;
mIdx = idx;
sq_resetobject(&mObj);
return *this;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////