| 1 |
/* ---------------------------------------------------------------------- */ |
| 2 |
|
| 3 |
#define ns__aproc0 "::aproc" |
| 4 |
static void c__aproc0(int x) |
| 5 |
{ |
| 6 |
|
| 7 |
} |
| 8 |
|
| 9 |
static int |
| 10 |
tcl__aproc0(ClientData cd, Tcl_Interp *interp, Tcl_Size oc, Tcl_Obj *CONST ov[]) |
| 11 |
{ |
| 12 |
int _x; |
| 13 |
|
| 14 |
critcl_trace_cmd_args (ns__aproc0, oc, ov); |
| 15 |
|
| 16 |
if (oc != 2) { |
| 17 |
Tcl_WrongNumArgs(interp, 1, ov, "x"); |
| 18 |
return critcl_trace_cmd_result (TCL_ERROR, interp); |
| 19 |
} |
| 20 |
|
| 21 |
/* (int < 8 x) - - -- --- ----- -------- */ |
| 22 |
{ |
| 23 |
{ |
| 24 |
if (Tcl_GetIntFromObj(interp, ov[1], &_x) != TCL_OK) return critcl_trace_cmd_result (TCL_ERROR, interp); } |
| 25 |
/* Range check, assert (x < 8) */ |
| 26 |
if (!(_x < 8)) { |
| 27 |
Tcl_AppendResult (interp, "expected int < 8, but got \"", Tcl_GetString (ov[1]), "\"", NULL); |
| 28 |
return critcl_trace_cmd_result (TCL_ERROR, interp); |
| 29 |
} } |
| 30 |
|
| 31 |
/* Call - - -- --- ----- -------- */ |
| 32 |
c__aproc0(_x); |
| 33 |
|
| 34 |
/* (void return) - - -- --- ----- -------- */ |
| 35 |
return critcl_trace_cmd_result (TCL_OK, interp); |
| 36 |
} |