Add check-argument

This commit is contained in:
Koichi Nakamura 2021-01-17 23:29:25 +09:00
parent 17be0a6c89
commit d75afc11c1

View file

@ -19,3 +19,9 @@ defined? roll [unless]
s" }T" streq if exit then
again
;
s" Invalid argument" exception constant INVALID-ARGUMENT
: check-argument ( f -- )
unless INVALID-ARGUMENT throw then
;