ezEngine  Release 25.03
ezPreprocessor::ProcessingEvent Struct Reference

The event data that the processor broadcasts. More...

#include <Preprocessor.h>

Public Types

enum  EventType {
  BeginExpansion, EndExpansion, Error, Warning,
  CheckDefined, CheckIfdef, CheckIfndef, EvaluateUnknown,
  Define, Redefine
}
 The event types that the processor broadcasts. More...
 

Public Attributes

EventType m_Type = EventType::Error
 
const ezTokenm_pToken = nullptr
 
ezStringView m_sInfo
 

Detailed Description

The event data that the processor broadcasts.

Please note that m_pToken contains a lot of interesting information, such as the current file and line number and of course the current piece of text.

Member Enumeration Documentation

◆ EventType

The event types that the processor broadcasts.

Enumerator
BeginExpansion 

A macro is now going to be expanded.

EndExpansion 

A macro is finished being expanded.

Error 

An error was encountered.

Warning 

A warning has been output.

CheckDefined 

A 'defined(X)' is being evaluated.

CheckIfdef 

A '#ifdef X' is being evaluated.

CheckIfndef 

A '#ifndef X' is being evaluated.

EvaluateUnknown 

Inside an #if an unknown identifier has been encountered, it will be evaluated as zero.

Define 

A #define X has been stored.

Redefine 

A #define for an already existing macro name (also logged as a warning)


The documentation for this struct was generated from the following file: