With just interpolations (although perhaps too many parentheses):
macro zerothem(xs...)
quote
$((:($(esc(x)) = 0;) for x in xs)...)
nothing # so that it does not print zero
end
end
With just interpolations (although perhaps too many parentheses):
macro zerothem(xs...)
quote
$((:($(esc(x)) = 0;) for x in xs)...)
nothing # so that it does not print zero
end
end