]> gitweb.factorcode.org Git - factor.git/commitdiff
system: make exit have ( n -- ) stack effect
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 1 Sep 2023 03:11:52 +0000 (20:11 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 1 Sep 2023 03:11:52 +0000 (20:11 -0700)
core/system/system.factor

index 30089f18d4f2b82be3223a34448aa1e4897f993d..765f7946c59e254698e917d42543fdf4543b4249 100644 (file)
@@ -82,7 +82,7 @@ PRIVATE>
         vm-compiler % "] on " % os name>> %
     ] "" make ;
 
-: exit ( n -- )
-    [ do-shutdown-hooks (exit) ] ignore-errors
+: exit ( n -- )
+    '[ do-shutdown-hooks _ (exit) ] ignore-errors
     [ "Unexpected error during shutdown!" print flush ] ignore-errors
     255 (exit) ;