diff --git a/lib/core.fs b/lib/core.fs index 66821a8..cfa6e6d 100644 --- a/lib/core.fs +++ b/lib/core.fs @@ -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 +;