Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Dec 14, 2023
1 parent a639d79 commit 36b30db
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Containers/macro.jl
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,13 @@ function build_name_expr(
kwargs::Dict{Symbol,Any},
)
base_name = get(kwargs, :base_name, string(something(name, "")))
if !(base_name isa String)
base_name = esc(base_name)
end
if isempty(index_vars) || base_name == ""
return esc(base_name)
return base_name
end
expr = Expr(:call, :string, esc(base_name), "[")
expr = Expr(:call, :string, base_name, "[")
for index in index_vars
# Converting the arguments to strings before concatenating is faster:
# https://github.com/JuliaLang/julia/issues/29550.
Expand Down

0 comments on commit 36b30db

Please sign in to comment.