chickadee » procedural-macros » define-macro

(define-macro (name . args) body )syntax

where body is either

  • (with-explicit-renaming (c? %x ...) xpr ....)
  • (with-implicit-renaming (c? %x ...) xpr ....) or simply
  • xpr ....

defines an explicit- or implicit-renaming macro with body xpr .... c? is a compare-routine to handle keys and %x ... are renamed or injected symbols to be used in the body.

The last form is implicit-renaming without injections and keys.