jak-project/goal_src/test/test-defsmacro-defgmacro.gc
2020-09-13 17:34:02 -04:00

13 lines
236 B
Common Lisp

(defsmacro test-macro (x)
;; goos macro
`(+ ,x 2)
)
(defmacro test-macro (x)
;; goal macro which calls a goos macro of the same name
(let ((goos-expansion (test-macro x)))
`(+ ,goos-expansion 3)
)
)
(test-macro 15)