add comment macro

This commit is contained in:
gilch 2017-08-03 19:04:30 -06:00
parent 203965d0fa
commit d0530b0e7e

View File

@ -216,3 +216,7 @@
(setv decorators (cut expr None -1) (setv decorators (cut expr None -1)
fndef (get expr -1)) fndef (get expr -1))
`(with-decorator ~@decorators ~fndef)) `(with-decorator ~@decorators ~fndef))
(defmacro comment [&rest body]
"Ignores body and always expands to None"
None)