Typical Use edit
int myCommandImplementation( ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) { if (objc != 3) { /* two arguments, plus command name */ Tcl_WrongNumArgs(interp, 1, objv, "fooArg barArg"); return TCL_ERROR; } /* The rest of the command implementation... */ }
Frequently used with Tcl_GetIndexFromObj; T_WNA can use information provided through T_GIFO for better error message generation..