Skip to content
Snippets Groups Projects
Unverified Commit 9c8c0718 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Do not escape function body

parent dc39be22
No related branches found
No related tags found
1 merge request!2Define variables through new @defvar macro
This commit is part of merge request !2. Comments created here will be created in the context of that merge request.
......@@ -138,7 +138,7 @@ function _defvar(func_def, getter=nothing)
new_def[:name] = Expr(:., fn_def[:name], QuoteNode(:f))
new_def[:args] = esc.(fn_def[:args])
new_def[:kwargs] = esc.(fn_def[:kwargs])
new_def[:body] = esc(fn_def[:body])
new_def[:body] = fn_def[:body]
new_def[:whereparams] = esc.(fn_def[:whereparams])
return MacroTools.combinedef(new_def)
catch e
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment