Skip to content

Commit

Permalink
quickfix #1630
Browse files Browse the repository at this point in the history
  • Loading branch information
mgkurtz committed Feb 29, 2024
1 parent 52fc7cb commit 6c2ded1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/misc/VarNames.jl
Original file line number Diff line number Diff line change
Expand Up @@ -312,14 +312,14 @@ _varnames_macro(args::VarNames...; kv...) = variable_names(args, Val(false)), kv

function varnames_macro_code(f, base_args, s::Symbol, kv)
quote
X, $(esc(s)) = $f($(kv...), $(base_args...), $(QuoteNode(s)))
X, $(esc(s)) = $f($(kv...), $(esc.(base_args)...), $(QuoteNode(s)))
X
end
end

function varnames_macro_code(f, base_args, s::Vector{Symbol}, kv)
quote
X, ($(esc.(s)...),) = $f($(kv...), $(base_args...), $s)
X, ($(esc.(s)...),) = $f($(kv...), $(esc.(base_args)...), $s)
X
end
end
Expand Down

0 comments on commit 6c2ded1

Please sign in to comment.