When to Use Macros
Macros help avoid code duplication
(defmacro with-resource-string ((resource-string
&key (size 80))
&body body)
`(let ((,resource-string
(allocate-resource-string :size ,size)))
,@body
(free-resource-string ,resource-string)))
Previous slide
Next slide
Back to first slide
View graphic version