repo.or.cz
/
tcl-tlc-base.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Factored out the non-gui stuff from TLC
[tcl-tlc-base.git]
/
scripts
/
assert.tcl
blob
e27399f6c8d9470d0cc9e03cd7d4a70085a94c4c
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
6
}
7
}
8
9