diff options
author | msmith <msmith@FreeBSD.org> | 1998-11-04 07:07:18 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 1998-11-04 07:07:18 +0000 |
commit | 38c50ef2661e8479071e8891e4218c3408002982 (patch) | |
tree | e3d0abdef9d622392efb3f5778fa91862de5a12d | |
parent | dc1da60388c06770bd0d32f600be8e1999065114 (diff) | |
download | FreeBSD-src-38c50ef2661e8479071e8891e4218c3408002982.zip FreeBSD-src-38c50ef2661e8479071e8891e4218c3408002982.tar.gz |
Improve the assertion testing for successful softword compilation.
The excessive use of assert() vs. robust error checking is annoying.
-rwxr-xr-x | sys/boot/ficl/softwords/softcore.pl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/boot/ficl/softwords/softcore.pl b/sys/boot/ficl/softwords/softcore.pl index fc1e522..8660b5b 100755 --- a/sys/boot/ficl/softwords/softcore.pl +++ b/sys/boot/ficl/softwords/softcore.pl @@ -77,10 +77,7 @@ print <<EOF void ficlCompileSoftCore(FICL_VM *pVM) { - int ret = ficlExec(pVM, softWords); - if (ret == VM_ERREXIT) - assert(FALSE); - return; + assert(ficlExec(pVM, softWords) != VM_ERREXIT); } |