mirror of
https://github.com/nineties/planckforth
synced 2024-12-25 21:58:22 +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
|
||||
again
|
||||
;
|
||||
|
||||
s" Invalid argument" exception constant INVALID-ARGUMENT
|
||||
|
||||
: check-argument ( f -- )
|
||||
unless INVALID-ARGUMENT throw then
|
||||
;
|
||||
|
|
Loading…
Reference in a new issue