Search found 1 match

by ndm42
Wed Nov 28, 2012 6:07 am
Forum: Common Lisp
Topic: macro expansion within macro
Replies: 5
Views: 15316

macro expansion within macro

I would like to know how get a macro to be expanded/evaluated within another macro when passed in as an argument. e.g. if i define the macro: (defmacro cond-clause (expr res) `(,expr (push ,res res))) Then (macroexpand-1 '(cond-clause (= c 8) 1)) returns ((= C 8) (PUSH 1 RES)) if i define another ma...