mirror of
https://github.com/nineties/planckforth
synced 2024-12-25 21:58:22 +01:00
Add defined?
This commit is contained in:
parent
ef3e15a3ca
commit
7f06ce6600
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue