Torquescript - currentLine / currentFile ?
by Orion Elenzil · in Torque Game Engine · 11/11/2005 (10:02 am) · 0 replies
I have a huge feeling this doesn't exist,
but does anyone know of a way to get the current fileName and lineNumber of torqueScript (if they exist) ?
the syntax-error reporter
(">>> Some error context, with ## on sides of error halt:")
knows the line because the error comes up while pre-processing script files,
but not so with compiledEval.cc's setCurVarName().
this is motivated by a reference-before-assignment to "%player" somewhere in our scripts.. :D
unlikely, but i thought i'd check..
but does anyone know of a way to get the current fileName and lineNumber of torqueScript (if they exist) ?
the syntax-error reporter
(">>> Some error context, with ## on sides of error halt:")
knows the line because the error comes up while pre-processing script files,
but not so with compiledEval.cc's setCurVarName().
this is motivated by a reference-before-assignment to "%player" somewhere in our scripts.. :D
unlikely, but i thought i'd check..
About the author