mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Support applying macros to imported-as-member declarations
This commit is contained in:
@@ -1,2 +1,9 @@
|
||||
void async_divide(double x, double y, void (* _Nonnull completionHandler)(double x))
|
||||
__attribute__((swift_attr("@macro_library.AddAsync")));
|
||||
|
||||
typedef struct SlowComputer {
|
||||
} SlowComputer;
|
||||
|
||||
void computer_divide(const SlowComputer *computer, double x, double y, void (* _Nonnull completionHandler)(double x))
|
||||
__attribute__((swift_attr("@macro_library.AddAsync")))
|
||||
__attribute__((swift_name("SlowComputer.divide(self:_:_:completionHandler:)")));
|
||||
|
||||
Reference in New Issue
Block a user