|
2007-07-18
| ||
| 22:55 | • Closed ticket [1755792fff]: get current line number during source command execut... artifact: 0767b0a04d user: israelt | |
| 22:53 | • Ticket [1755792fff]: 5 changes artifact: 68d236427e user: israelt | |
| 07:11 | • Ticket [1755792fff]: 4 changes artifact: b0347b65ad user: andreas_kupries | |
| 07:09 | • Ticket [1755792fff]: 4 changes artifact: b9289d865d user: israelt | |
| 06:39 | • Ticket [1755792fff]: 4 changes artifact: bae9e6b973 user: andreas_kupries | |
|
2007-07-17
| ||
| 23:29 | • New ticket [1755792fff]. artifact: 213a82094a user: israelt | |
get current line number during source command execution
Closed / Fixed1755792fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-07-17 23:29:08
During the execution of a user / registered command I need to report about an issue (which is not an error) and provide the script file name and line number if the command is inside a script file. The Tcl_Interp errorLine member variable is updated only if the command returns TCL_ERROR code, otherwise I can't see any way to find out the current line number.
andreas_kupriesplain2007-07-18 06:39:38
Logged In: YES user_id=75003 Originator: NO Is TIP #280 (http://tip.tcl.tk/280) what you are after ? If yes, then you have this in Tcl 8.5, and in Activestate's ActiveTcl 8.4.
israeltplain2007-07-18 07:09:26
Logged In: YES user_id=377302 Originator: YES Thanks Andreas. Yes, this is what I need, but I need to get the line number information from C. I guess I will be able to get this after looking at the Tcl source code... We are still using Tcl 8.4 so looks like we need to use Tcl 8.5 in order to access this functionality.
andreas_kupriesplain2007-07-18 07:11:54
Logged In: YES
user_id=75003
Originator: NO
Tcl_Eval ("info frame") and similar code.
israeltplain2007-07-18 22:53:15
Logged In: YES user_id=377302 Originator: YES Looks like this is available in 8.5, but a C API to get this info would be nice to have.
israeltplain2007-07-18 22:55:45
Logged In: YES user_id=377302 Originator: YES Close this issue.
Log in (anonymous is fine) to add a comment.