Table of Contents

Class MacroDefinition

Namespace
ShadowDusk.Core.Preprocessor
Assembly
ShadowDusk.Core.dll

A single preprocessor macro definition (a #define) injected into compilation.

public sealed record MacroDefinition : IEquatable<MacroDefinition>
Inheritance
MacroDefinition
Implements
Inherited Members

Constructors

MacroDefinition(string, int)

A single preprocessor macro definition (a #define) injected into compilation.

public MacroDefinition(string Name, int Value = 1)

Parameters

Name string

The macro name.

Value int

The integer value; defaults to 1.

Properties

Name

The macro name.

public string Name { get; init; }

Property Value

string

Value

The integer value; defaults to 1.

public int Value { get; init; }

Property Value

int