IfAttribute

Description

sealed class Tinman.Gpu.Semantic.IfAttribute

Derived from

Attribute abstract

Indicates that the annotated method or field shall be included in the source code for compilation only if the given preprocessor symbol is defined / not defined.

Public / Constructors

If​Attribute


public constructor IfAttribute → (1)

symbol in : string

The preprocessor symbol to check. Defined will be true unless the value of this parameter is prefixed with '!'.

Creates a new instance of If.

Public / Attributes

Defined


public attribute Defined → (bool)

Include member if Symbol is defined (true) or if Symbol is not defined (false)?

Symbol


public attribute Symbol → (string)

The preprocessor symbol to check.

In the source code, the 'GX_' prefix is prepended to this symbol.