This commit is contained in:
igor
2026-02-18 16:05:48 +01:00
parent cd1df4b18d
commit f3de51f5d8
16 changed files with 302 additions and 5 deletions

View File

@@ -70,3 +70,32 @@ end
}
;
#abort [*] -> [*]
word abort
"abort" eputs
1 exit
end
#abort_msg [* | msg] -> [*]
word abort_msg
eputs
1 exit
end
#assert [* | cond] -> [*]
word assert
if
else
"assertion failed" abort_msg
end
end
#assert_msg [*, msg | cond] -> [*]
word assert_msg
if
2drop
else
abort_msg
end
end