The Battle for Wesnoth  1.15.1+dev
Public Types | Public Member Functions | Public Attributes | List of all members
preprocessor_data::token_desc Struct Reference

Description of a preprocessing chunk. More...

Public Types

enum  TOKEN_TYPE {
  START, PROCESS_IF, PROCESS_ELSE, SKIP_IF,
  SKIP_ELSE, STRING, VERBATIM, MACRO_SPACE,
  MACRO_CHUNK, MACRO_PARENS
}
 

Public Member Functions

 token_desc (TOKEN_TYPE type, const int stack_pos, const int linenum)
 

Public Attributes

TOKEN_TYPE type
 
int stack_pos
 Starting position in strings_ of the delayed text for this chunk. More...
 
int linenum
 

Detailed Description

Description of a preprocessing chunk.

Definition at line 615 of file preprocessor.cpp.

Member Enumeration Documentation

◆ TOKEN_TYPE

Enumerator
START 
PROCESS_IF 
PROCESS_ELSE 
SKIP_IF 
SKIP_ELSE 
STRING 
VERBATIM 
MACRO_SPACE 
MACRO_CHUNK 
MACRO_PARENS 

Definition at line 617 of file preprocessor.cpp.

Constructor & Destructor Documentation

◆ token_desc()

preprocessor_data::token_desc::token_desc ( TOKEN_TYPE  type,
const int  stack_pos,
const int  linenum 
)
inline

Definition at line 630 of file preprocessor.cpp.

Member Data Documentation

◆ linenum

int preprocessor_data::token_desc::linenum

Definition at line 641 of file preprocessor.cpp.

Referenced by preprocessor_data::get_chunk().

◆ stack_pos

int preprocessor_data::token_desc::stack_pos

Starting position in strings_ of the delayed text for this chunk.

Definition at line 640 of file preprocessor.cpp.

Referenced by preprocessor_data::get_chunk().

◆ type

TOKEN_TYPE preprocessor_data::token_desc::type

Definition at line 637 of file preprocessor.cpp.

Referenced by preprocessor_data::get_chunk().


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