Skip to content

Commit

Permalink
Fuck around a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
sjl committed Jan 9, 2017
1 parent 0a7364c commit 2550203
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/ascii.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@
(unwind-protect (progn ,@body)
(charms:destroy-window ,symbol))))

; (defmacro with-panel ((symbol window) &body body)
; `(let ((,symbol (charms:make-panel ,window)))
; (unwind-protect (progn ,@body)
; (charms:destroy-panel ,symbol))))
(defmacro with-panel ((symbol window) &body body)
`(let ((,symbol (charms:make-panel ,window)))
(unwind-protect (progn ,@body)
(charms:destroy-panel ,symbol))))

(defmacro with-windows (bindings &body body)
(if (null bindings)
Expand All @@ -71,12 +71,12 @@
(with-windows ,(rest bindings)
,@body))))

; (defmacro with-panels (bindings &body body)
; (if (null bindings)
; `(progn ,@body)
; `(with-panel ,(first bindings)
; (with-panels ,(rest bindings)
; ,@body))))
(defmacro with-panels (bindings &body body)
(if (null bindings)
`(progn ,@body)
`(with-panel ,(first bindings)
(with-panels ,(rest bindings)
,@body))))


; (defun run ()
Expand Down

0 comments on commit 2550203

Please sign in to comment.