Skip to content
This repository was archived by the owner on Feb 3, 2021. It is now read-only.

Commit 481de03

Browse files
committed
return 0 from failed ok()
1 parent 0de3800 commit 481de03

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cheats/nqp-builtins.pir

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@
3434
print description
3535
no_description:
3636
print "\n"
37+
38+
unless condition goto not_ok
3739
.return (1)
40+
not_ok:
41+
.return (0)
3842
.end
3943

4044
.sub 'plan'

0 commit comments

Comments
 (0)