Skip to content

Commit

Permalink
Remove inline annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
serenity4 committed Nov 16, 2023
1 parent 2d5b4c0 commit dbd4fc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MVector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ let dimension_names = zip((:x, :y, :z, :w), (:r, :g, :b, :a))
end
end
for i in 1:4
@eval @inline function Base.getproperty(v::Union{SVector{$i},MVector{$i}},
@eval function Base.getproperty(v::Union{SVector{$i},MVector{$i}},
name::Symbol)
$(foldl(append!, getproperty_bodies[1:i])...)
getfield(v, name)
end
@eval @inline function Base.setproperty!(v::MVector{$i}, name::Symbol, value)
@eval function Base.setproperty!(v::MVector{$i}, name::Symbol, value)
$(foldl(append!, setproperty_bodies[1:i])...)
setfield!(v, name, value)
end
Expand Down

0 comments on commit dbd4fc2

Please sign in to comment.