mirror of
https://github.com/nineties/planckforth
synced 2025-01-13 08:01:10 +01:00
Add check-argument
This commit is contained in:
parent
17be0a6c89
commit
d75afc11c1
1 changed files with 6 additions and 0 deletions
|
@ -19,3 +19,9 @@ defined? roll [unless]
|
||||||
s" }T" streq if exit then
|
s" }T" streq if exit then
|
||||||
again
|
again
|
||||||
;
|
;
|
||||||
|
|
||||||
|
s" Invalid argument" exception constant INVALID-ARGUMENT
|
||||||
|
|
||||||
|
: check-argument ( f -- )
|
||||||
|
unless INVALID-ARGUMENT throw then
|
||||||
|
;
|
||||||
|
|
Loading…
Reference in a new issue