| 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 |
if (oc != 2) { |
| 15 |
Tcl_WrongNumArgs(interp, 1, ov, "x"); |
| 16 |
return TCL_ERROR; |
| 17 |
} |
| 18 |
|
| 19 |
/* (int > 4 <= 8 x) - - -- --- ----- -------- */ |
| 20 |
{ |
| 21 |
{ |
| 22 |
if (Tcl_GetIntFromObj(interp, ov[1], &_x) != TCL_OK) return TCL_ERROR; } |
| 23 |
/* Range check, assert (x > 4) */ |
| 24 |
if (!(_x > 4)) { |
| 25 |
Tcl_AppendResult (interp, "expected int > 4 <= 8, but got \"", Tcl_GetString (ov[1]), "\"", NULL); |
| 26 |
return TCL_ERROR; |
| 27 |
} |
| 28 |
/* Range check, assert (x <= 8) */ |
| 29 |
if (!(_x <= 8)) { |
| 30 |
Tcl_AppendResult (interp, "expected int > 4 <= 8, but got \"", Tcl_GetString (ov[1]), "\"", NULL); |
| 31 |
return TCL_ERROR; |
| 32 |
} } |
| 33 |
|
| 34 |
/* Call - - -- --- ----- -------- */ |
| 35 |
c__aproc0(_x); |
| 36 |
|
| 37 |
/* (void return) - - -- --- ----- -------- */ |
| 38 |
return TCL_OK; |
| 39 |
} |