macrotools update

This commit is contained in:
Mike J Innes 2016-12-19 15:04:41 +00:00
parent bbee60cd86
commit 17449e15a3

View File

@ -4,7 +4,7 @@ export @net, @ml
function process_func(ex, params = []) function process_func(ex, params = [])
@capture(shortdef(ex), (args__,) -> body_) @capture(shortdef(ex), (args__,) -> body_)
body = @> body MacroTools.flatten block liftloops graphm DataFlow.il body = @> body MacroTools.flatten liftloops graphm DataFlow.il
body = mapconst(x -> x in params ? :(self.$x) : x, body) body = mapconst(x -> x in params ? :(self.$x) : x, body)
return args, body return args, body
end end