Freestanding Macroswift 6.0.1Swift

    externalMacro(module:type:)

    Specifies the module and type name for an externally-defined macro, which must conform to the appropriate set of Macro protocols.

    @freestanding(expression) macro externalMacro<T>(module: String, type: String) -> T

    This macro can only be used to define other macros. For example:

    macro stringify(_ value: T) -> (T, String) = #externalMacro(module: “ExampleMacros”, type :“StringifyMacro”)

    Use of this macro in any other context is an error.