Revision 042cde527b2c46177872340795e21d01ea6a1f91 authored by Lilith Orion Hafner on 26 July 2024, 13:33:32 UTC, committed by Lilith Orion Hafner on 26 July 2024, 13:33:32 UTC
1 parent 40498bc
Raw File
MacroCalls.jl
# This file is a part of Julia. License is MIT: https://julialang.org/license

module MacroCalls

export @macrocall

macro macrocall(ex)
    @assert Meta.isexpr(ex, :macrocall)
    ex.head = :call
    for i in 2:length(ex.args)
        ex.args[i] = QuoteNode(ex.args[i])
    end
    insert!(ex.args, 3, __module__)
    return esc(ex)
end

end
back to top