const char* errmsg = "argument error: a client named that does not exist";
Tcl_SetObjResult(interp, Tcl_NewStringObj(errmsg, strlen(errmsg)));
}
+ } else if(strcasecmp(subcommand, "debug") == 0) {
+ if(objc != 3) {
+ const char* errmsg = "argument error: arguments should be \"w3 debug bool\"";
+ Tcl_SetObjResult(interp, Tcl_NewStringObj(errmsg, strlen(errmsg)));
+ return TCL_ERROR;
+ }
+ W3_Do_Debug(atoi(Tcl_GetString(argv[2]));
+ Tcl_SetObjResult(interp, Tcl_NewIntObj(0));
+ return TCL_OK;
} else {
const char* errmsg = "argument error: invalid subcommand";
Tcl_SetObjResult(interp, Tcl_NewStringObj(errmsg, strlen(errmsg)));