From 88b17cb18b5b646782b7308edfded33e35559338 Mon Sep 17 00:00:00 2001 From: jsancho Date: Sun, 1 Nov 2009 23:10:19 +0000 Subject: [PATCH] --- gacela_mobs.lisp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gacela_mobs.lisp b/gacela_mobs.lisp index 62e6e6c..0cd56ae 100755 --- a/gacela_mobs.lisp +++ b/gacela_mobs.lisp @@ -25,7 +25,10 @@ ,(mob-options methods)))) (defun mob-options (methods) - ) + (labels ((options (m &aux (option (car m)) (vars (cadr m)) (body (caddr m))) + (cond ((null m) nil) + (t (cons option (cons (lambda body (options (cdddr m)))))))) + (cons 'case (cons 'option (options methods))))) (defmacro defmob (name variables &key init logic render) `(let ((make-name ',(intern (concatenate 'string "MAKE-" (string name))))) -- 2.39.5