mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
TORQUE_VALIDATE_STACK define for console stack debugging
This commit is contained in:
parent
555610f69f
commit
3c1c88d96b
1 changed files with 8 additions and 8 deletions
|
|
@ -435,12 +435,12 @@ static void setFieldComponent( SimObject* object, StringTableEntry field, const
|
||||||
|
|
||||||
ConsoleValueRef CodeBlock::exec(U32 ip, const char *functionName, Namespace *thisNamespace, U32 argc, ConsoleValueRef *argv, bool noCalls, StringTableEntry packageName, S32 setFrame)
|
ConsoleValueRef CodeBlock::exec(U32 ip, const char *functionName, Namespace *thisNamespace, U32 argc, ConsoleValueRef *argv, bool noCalls, StringTableEntry packageName, S32 setFrame)
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
#ifdef TORQUE_DEBUG
|
#ifdef TORQUE_VALIDATE_STACK
|
||||||
U32 stackStart = STR.mStartStackSize;
|
U32 stackStart = STR.mStartStackSize;
|
||||||
U32 consoleStackStart = CSTK.mStackPos;
|
U32 consoleStackStart = CSTK.mStackPos;
|
||||||
#endif
|
#endif
|
||||||
*/
|
|
||||||
//Con::printf("CodeBlock::exec(%s,%u)", functionName ? functionName : "??", ip);
|
//Con::printf("CodeBlock::exec(%s,%u)", functionName ? functionName : "??", ip);
|
||||||
|
|
||||||
static char traceBuffer[1024];
|
static char traceBuffer[1024];
|
||||||
|
|
@ -2245,12 +2245,12 @@ execFinished:
|
||||||
}
|
}
|
||||||
|
|
||||||
decRefCount();
|
decRefCount();
|
||||||
/*
|
|
||||||
#ifdef TORQUE_DEBUG
|
#ifdef TORQUE_VALIDATE_STACK
|
||||||
//AssertFatal(!(STR.mStartStackSize > stackStart), "String stack not popped enough in script exec");
|
AssertFatal(!(STR.mStartStackSize > stackStart), "String stack not popped enough in script exec");
|
||||||
//AssertFatal(!(STR.mStartStackSize < stackStart), "String stack popped too much in script exec");
|
AssertFatal(!(STR.mStartStackSize < stackStart), "String stack popped too much in script exec");
|
||||||
#endif
|
#endif
|
||||||
*/
|
|
||||||
return returnValue;
|
return returnValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue