Handbook
Glossary
check-zero ( code -- )
Vocabulary
python
.
errors
Inputs
code
an
integer
Outputs
None
Word description
Verifies that the return code is 0 and throws an error otherwise.
Definition
USING:
kernel
python.errors.private
;
IN:
python.errors
:
check-zero
( code -- )
0
=
[
get-error
throw-error
]
unless
;