Line numbers of script in command procedures

Help
2005-05-05
2013-05-30
  • Ralf Kirchner
    Ralf Kirchner
    2005-05-05

    Hi,
    I have created my own little interpreter by adding additional commands with Tcl_CreateCommand. This works fine with one exception:
    From my command procedures I want to display the currently parsed line number of the tcl script. The problem is that I don't find a command or a variable for reading this line number.
    I can't really be the first one with that problem.
    Does anybody have an idea how to read that line number?
         Ralf