summaryrefslogtreecommitdiffstats
path: root/sys/boot/ficl
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1998-11-04 07:07:18 +0000
committermsmith <msmith@FreeBSD.org>1998-11-04 07:07:18 +0000
commit38c50ef2661e8479071e8891e4218c3408002982 (patch)
treee3d0abdef9d622392efb3f5778fa91862de5a12d /sys/boot/ficl
parentdc1da60388c06770bd0d32f600be8e1999065114 (diff)
downloadFreeBSD-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.
Diffstat (limited to 'sys/boot/ficl')
-rwxr-xr-xsys/boot/ficl/softwords/softcore.pl5
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);
}
OpenPOWER on IntegriCloud