Public feed #888689

Stuff

public text v1 · immutable
Raw Edit
·published 2008-02-02 09:47 UTC
rendered paste body
(set *help* (table))
(set def (annotate 'mac
            (fn (name parms . body)
              `(do (sref sig ',parms ',name)
                   (if (is (type ',(car body)) 'string)
                       (if (is (is ',(cdr body) nil) nil)
                           (sref *help* ,(car body) ',name)))
                   (safeset ,name (fn ,parms ,@body))))))
(set help (annotate 'mac
             (fn (name) `(if (no (*help* ',name))
                             "Documentation unavailable"
                             (*help* ',name)))))