]> gitweb.factorcode.org Git - factor.git/blobdiff - core/destructors/destructors.factor
core/basis/extra: using STARTUP-HOOK: and SHUTDOWN-HOOK:
[factor.git] / core / destructors / destructors.factor
index c50435fed10a9f7ba965559b9758aa8643385b4e..acd6ef922d9d67a94fc941eff1a117b894008f77 100644 (file)
@@ -90,13 +90,13 @@ PRIVATE>
         cleanup
     ] with-variables ; inline
 
-[
+STARTUP-HOOK: [
     HS{ } clone disposables set-global
     V{ } clone always-destructors set-global
     V{ } clone error-destructors set-global
-] "destructors" add-startup-hook
+]
 
-[
+SHUTDOWN-HOOK: [
     do-always-destructors
     do-error-destructors
-] "destructors" add-shutdown-hook
+]