Add :system option clog-builder

This commit is contained in:
David Botton 2022-06-16 10:11:25 -04:00
parent 667f8c6f8c
commit f4658dbc3f
2 changed files with 12 additions and 3 deletions

View file

@ -129,15 +129,23 @@ BOOT-FILE will be used. If BOOT-FILE is nil path is removed."
(setf (gethash path *url-to-on-new-window*) on-new-window-handler)
(remhash path *url-to-on-new-window*)))
;;;;;;;;;;;;;;;;;;
;; is-running-p ;;
;;;;;;;;;;;;;;;;;;
(defun is-running-p ()
*clog-running*)
;;;;;;;;;;;;;;
;; shutdown ;;
;;;;;;;;;;;;;;
(defun shutdown ()
"Shutdown CLOG."
(clrhash *url-to-on-new-window*)
(setf *clog-running* nil)
(clog-connection:shutdown-clog))
(when *clog-running*
(clrhash *url-to-on-new-window*)
(setf *clog-running* nil)
(clog-connection:shutdown-clog)))
;;;;;;;;;;;;;;;;
;; debug-mode ;;

View file

@ -64,6 +64,7 @@ embedded in a native template application.)"
"CLOG Startup and Shutdown"
(initialize function)
(set-on-new-window function)
(is-running-p function)
(shutdown function)
(debug-mode function)
(open-browser function))