KotiChennayya
Programmer
Hi All,
I have a command iseq for comparing 2 numbers.
I am using it in a script & i will be calling the script in Tcl_EvalFile().I will be checking whether all the parameters are present.If not I want to print error message to std output.Here I dont want to use printf().I want to simulate the senario exactly like tclsh whenever invalid arguments are issued.for ex:
tclsh>join
wrong # args: should be "join list ?joinString?"
This kind message should appear for iseq command when I use it in script.How can I do this?
interp->result,Tcl_SetObjResult,Tcl_WrongNumArgs will store it in result object of interp,but wont display it on std output.
Is there any way to do this?
Thanks in advance
Koti
I have a command iseq for comparing 2 numbers.
I am using it in a script & i will be calling the script in Tcl_EvalFile().I will be checking whether all the parameters are present.If not I want to print error message to std output.Here I dont want to use printf().I want to simulate the senario exactly like tclsh whenever invalid arguments are issued.for ex:
tclsh>join
wrong # args: should be "join list ?joinString?"
This kind message should appear for iseq command when I use it in script.How can I do this?
interp->result,Tcl_SetObjResult,Tcl_WrongNumArgs will store it in result object of interp,but wont display it on std output.
Is there any way to do this?
Thanks in advance
Koti