BuildContext

A context containing information regarding the build process, such a sources.

Members

Functions

disableAllDirectives
void disableAllDirectives()

Disables all directives. They can then be individually enabled again.

enableAllDirectives
void enableAllDirectives()

Enables all directives. They can then be individually disabled again.

Variables

enableConditionalDirectives
bool enableConditionalDirectives;

Wheter to enable processing of conditional directives.

enableErrorDirectives
bool enableErrorDirectives;

Wheter to enable processing of #error directives.

enableIncludeDirectives
bool enableIncludeDirectives;

Wheter to enable processing of #include directives.

enableMacroDefineDirectives
bool enableMacroDefineDirectives;

Wheter to enable processing of #define directives.

enableMacroUndefineDirectives
bool enableMacroUndefineDirectives;

Wheter to enable processing of #undef directives.

enablePragmaDirectives
bool enablePragmaDirectives;

Wheter to enable processing of #pragma directives.

ignoreUnmatchedConditionalDirectives
bool ignoreUnmatchedConditionalDirectives;

Whether the parser should ignore #elif, #else and #endif directives that didn't come after a #if directive. If true they will be kept in the result.

inclusionLimit
uint inclusionLimit;

The maximum amount of inclusions allowed. This is to prevent an endless inclusion cycle. Defaults to 4000.

macros
MacroMap macros;

A map of pre-defined macros. Built-in macros will override these.

mainSources
SourceMap mainSources;

When specified, only these sources will be processed. Sources specified in "sources" will still be able to be included and processed, but are treated as libraries. When empty, all sources in "sources" will be processed instead.

sources
SourceMap sources;

Sources to be processed.

Meta