Factored out the non-gui stuff from TLC
[tcl-tlc-base.git] / scripts / assert.tcl
blobe27399f6c8d9470d0cc9e03cd7d4a70085a94c4c
1 proc tlc::assert {expr msg} {
2 if {![uplevel [list expr $expr]]} {
3 error "Assert failed: \"$msg\"" "" [list assert_failed $expr $msg]
4 } else {
5 return 1