Skip to content

Commit

Permalink
allow frame-vars to take default parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
vii committed Mar 11, 2010
1 parent 0bc2c98 commit 357332e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/webapp/frame.lisp
Expand Up @@ -36,16 +36,17 @@
(setf *webapp-frame* (apply 'make-frame args-for-make-frame)))
*webapp-frame*)

(my-defun frame var (id)
(getf (my variables) id))
(my-defun frame var (id &optional default)
(getf (my variables) id default))

(my-defun frame (setf var) (val id)
(setf (getf (my variables) id) val))

(defun webapp-frame-var (id)
(frame-var (webapp-frame) id))
(defun webapp-frame-var (id &optional default)
(frame-var (webapp-frame) id default))

(defun (setf webapp-frame-var) (val id)
(defun (setf webapp-frame-var) (val id &optional default)
(declare (ignore default))
(setf (frame-var (webapp-frame) id) val))

(defun list-all-frames ()
Expand Down

0 comments on commit 357332e

Please sign in to comment.