X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=test.lisp;h=54d4a63986967ff4e7e85e492a664831335ec980;hb=7226856a758758ffd387ccb74e1045643d3d37b7;hp=36331f28ecef9fdeca827865d3a1a80ca2fe0125;hpb=64bbc0eee76aae8e023a7ed0b4a66f5d91bed684;p=jscl.git diff --git a/test.lisp b/test.lisp index 36331f2..54d4a63 100644 --- a/test.lisp +++ b/test.lisp @@ -19,3 +19,18 @@ (%compile-defun 'f)) (fsetq f (lambda (x) (+ x 10))) (debug (f 20)) + +;;; Macros +(debug "---MACROS---") + +(eval-when-compile + (%compile-defmacro 'incf + (lambda (y) + (list 'setq y (list '+ 1 y))))) + +(eval-when-compile + (%compile-defvar 'x)) + +(setq x 0) +(incf x) +(debug x)