My appologies if this is not the right forum to ask this question.
I created a Tcl interprater using Tcl_Interp
Now, I need to add error handling code to it just like tclsh.
On seeing a syntax error, tclsh prints two set of info:
<Info about the location of the erred code>
The location info looks somewhat like this:
(file "test.tcl" line 12)
invoked from within
(file "test1.ralf" line 5)
I wanted to add this location info to my error handling code. But I
was wondering if I need to build and maintain this info myself from
scratch or Tcl stores this info in some variable/function which I just
need to use to get this info.
Appreciate an help here.