&builder arg for defMacro

This commit is contained in:
2021-11-17 14:40:44 -07:00
parent 7b1ba83561
commit 3196f45d4f
2 changed files with 12 additions and 2 deletions

View File

@@ -62,9 +62,9 @@
// Calling (set) on a macroVar is a faux-pas, because (setMacroVar) is the right way
(defMacroVar count 0)
(defMacro _testSetMacroVarMacro []
(defMacro _testSetMacroVarMacro [&builder b]
(assertThrows (set count (+ count 1)))
(ReaderExp.StrExp (Std.string count)))
(b.str (Std.string count)))
(function _testSetMacroVar []
(_testSetMacroVarMacro)