Interface IMacro
- Namespace
- Dassie.Extensions
- Assembly
- dc.dll
Defines a mechanism for extensions to provide build system macros.
public interface IMacro
- Extension Methods
Properties
Name
The name of the macro.
string Name { get; }
Property Value
Options
Specifies options for the macro.
MacroOptions Options { get; }
Property Value
Parameters
The parameters of the macro.
List<MacroParameter> Parameters { get; }
Property Value
Methods
Expand(Dictionary<string, string>, MacroInvocationInfo)
The method called when a macro expansion is requested.
string Expand(Dictionary<string, string> arguments, MacroInvocationInfo info)
Parameters
argumentsDictionary<string, string>The arguments passed to the macro.
infoMacroInvocationInfoThe location information of the macro invocation.
Returns
- string
The expanded value of the current macro.