Add defined?

This commit is contained in:
Koichi Nakamura 2021-01-06 17:19:53 +09:00
parent ef3e15a3ca
commit 7f06ce6600

View file

@ -2118,6 +2118,9 @@ codegen-target @ s" no-codegen" str= not [if]
abort
[then] [then] \ End of environment dependent code
: defined? ( "name" -- f )
word throw find <> 0
;
: need-defined ( "name" -- )
word throw dup find unless