223
224
225
226
227
228
229
230
|
return(TCL_OK);
}
$handle go
if {[testCCommand] ne "OKAY"} {
error "\[testCCommand\] Invalid result"
}
exit 0
|
>
>
>
>
>
>
>
>
>
>
>
|
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
|
return(TCL_OK);
}
$handle go
if {[testCCommand] ne "OKAY"} {
error "\[testCCommand\] Invalid result"
}
# Critcl test
package require -exact critcl 0
critcl::ccode {
#define test 1234
}
critcl::cproc test14 {int x} int {
return(x + test);
}
puts "Test14: [test14 3]"
exit 0
|