cctw
0.2.1
|
#include <tcl.h>
Go to the source code of this file.
Macros | |
#define | TCL_ARGS(count_expr, help) |
#define | TCL_RETURN_ERROR(format, args...) |
#define | TCL_CHECK_MSG(rc, format, args...) |
#define | TCL_CHECK(rc) { if (rc != TCL_OK) { return TCL_ERROR; }} |
#define | TCL_CONDITION(condition, format, args...) |
Functions | |
void | tcl_condition_failed (Tcl_Interp *interp, Tcl_Obj *command, const char *format,...) __attribute__((format(printf |
#define TCL_ARGS | ( | count_expr, | |
help | |||
) |
Check that the user gave us the correct number of arguments objc should be equal to count. If not, fail. Note that in Tcl, the command name counts as an argument
Definition at line 18 of file cctwtclutils.h.
Referenced by Cctwtcl_Input_Cmd(), Cctwtcl_Merge_Cmd(), Cctwtcl_Output_Cmd(), and Cctwtcl_Transform_Cmd().
#define TCL_CHECK | ( | rc | ) | { if (rc != TCL_OK) { return TCL_ERROR; }} |
If rc is not TCL_OK, return a blank Tcl error
Definition at line 57 of file cctwtclutils.h.
#define TCL_CHECK_MSG | ( | rc, | |
format, | |||
args... | |||
) |
If rc is not TCL_OK, return a Tcl error with message
Definition at line 49 of file cctwtclutils.h.
#define TCL_CONDITION | ( | condition, | |
format, | |||
args... | |||
) |
Definition at line 59 of file cctwtclutils.h.
#define TCL_RETURN_ERROR | ( | format, | |
args... | |||
) |
Print error message and return a Tcl error Requires Tcl_Interp interp and Tcl_Obj* objv in scope
Definition at line 40 of file cctwtclutils.h.
void tcl_condition_failed | ( | Tcl_Interp * | interp, |
Tcl_Obj * | command, | ||
const char * | format, | ||
... | |||
) |
Print error message and setup Tcl error state