The Battle for Wesnoth  1.17.5+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 {
  token_type::start, token_type::process_if, token_type::process_else, token_type::skip_if,
  token_type::skip_else, token_type::string, token_type::verbatim, token_type::macro_space,
  token_type::macro_chunk, token_type::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 651 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 653 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 666 of file preprocessor.cpp.

Member Data Documentation

◆ linenum

int preprocessor_data::token_desc::linenum

Definition at line 677 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 676 of file preprocessor.cpp.

Referenced by preprocessor_data::get_chunk().

◆ type

token_type preprocessor_data::token_desc::type

Definition at line 673 of file preprocessor.cpp.

Referenced by preprocessor_data::get_chunk().


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