12.4. C#-like multicast delegate type macro
C#-like multicast delegate (multicast callback) via type macro. Generates a struct that holds a list of handlers (lambdas or function pointers) which are all invoked when the delegate is called.
12.4.1. Delegate type macro
- delegate(macroArgument: TypeDeclPtr; passArgument: TypeDeclPtr; FuncType: TypeDeclPtr): TypeDeclPtr
Type macro that generates a delegate struct from a function or lambda type.
- Arguments:
macroArgument : TypeDeclPtr
passArgument : TypeDeclPtr
FuncType : TypeDeclPtr