What script called my c++ code? The answer
by Brandon James · in Torque Game Engine · 06/08/2006 (11:40 am) · 2 replies
While at a breakpoint in torque c++ code this watch tells me what
script method called the executing code
(*(*(((gEvalState).stack).mArray))).scopeName
I was wondering how to do this for ages and hadn't really looked too hard at it. Then I found it kind of by luck so I thought I'd share this with you all. Very handy when you find yourself in a method you didn't expect the script to be calling.
script method called the executing code
(*(*(((gEvalState).stack).mArray))).scopeName
I was wondering how to do this for ages and hadn't really looked too hard at it. Then I found it kind of by luck so I thought I'd share this with you all. Very handy when you find yourself in a method you didn't expect the script to be calling.
#2
... when this is much easier to read...
Silly debugger. :)
Good tip Brandon!
06/08/2006 (3:38 pm)
A pet peeve of mine. VC++ does this...(*(*(((gEvalState).stack).mArray))).scopeName
... when this is much easier to read...
(*gEvalState.stack.mArray)->scopeName
Silly debugger. :)
Good tip Brandon!
Torque Owner Alberto Ganesh Barbati
Default Studio Name