1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
For advanced use, the following commands used by [cmd critcl::cproc] itself are
exposed.
[vset given_cmd "Given an argument declaration as documented for [cmd critcl::cproc],"]
[list_begin definitions]
[comment ---------------------------------------------------------------------]
[call [cmd ::critcl::argnames] [arg arguments]]
[vset given_cmd] returns a list of the corresponding user-visible names.
[comment ---------------------------------------------------------------------]
[call [cmd ::critcl::argcnames] [arg arguments]]
[vset given_cmd] returns a list of the corresponding C variable names for the
user-visible names. The names returned here match the names used in the
declarations and code returned by [cmd ::critcl::argvardecls] and
[cmd ::critcl::argconversion].
[comment ---------------------------------------------------------------------]
[call [cmd ::critcl::argcsignature] [arg arguments]]
[vset given_cmd] returns a list of the corresponding C parameter declarations.
[comment ---------------------------------------------------------------------]
[call [cmd ::critcl::argvardecls] [arg arguments]]
[vset given_cmd] returns a list of the corresponding C variable declarations.
The names used in these declarations match the names returned by
[cmd ::critcl::argcnames].
[comment ---------------------------------------------------------------------]
[call [cmd ::critcl::argconversion] [arg arguments] [opt [arg n]]]
[vset given_cmd] returns a list of C code fragments converting the user visible
arguments found in the declaration from Tcl_Obj* to C types. The names used in
these statements match the names returned by [cmd ::critcl::argcnames].
[para] The generated code assumes that the procedure arguments start
at index [arg n] of the [var objv] array. The default is [const 1].
[comment ---------------------------------------------------------------------]
[call [cmd ::critcl::argoptional] [arg arguments]]
[vset given_cmd] returns a list of boolean values indicating which arguments
are optional ([const true]), and which are not ([const false]).
[comment ---------------------------------------------------------------------]
[call [cmd ::critcl::argdefaults] [arg arguments]]
[vset given_cmd] returns a list containing the default values for all optional
arguments.
[comment ---------------------------------------------------------------------]
[call [cmd ::critcl::argsupport] [arg arguments]]
[vset given_cmd] returns a list of C code fragments needed to define the
necessary supporting types.
[list_end]
|