It's impossible because `v.x, v.y` is not a tree (AST). But you can transform more than that like in `expandVec2(f, a, b)` producing `f(a.x, a.y, b.x, b.y)`.
But frankly, just type it out, macros are not for saving typing effort.
It's impossible because `v.x, v.y` is not a tree (AST). But you can transform more than that like in `expandVec2(f, a, b)` producing `f(a.x, a.y, b.x, b.y)`.
But frankly, just type it out, macros are not for saving typing effort.