The Battle for Wesnoth  1.19.7+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 class  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 648 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 650 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 663 of file preprocessor.cpp.

Member Data Documentation

◆ linenum

int preprocessor_data::token_desc::linenum

Definition at line 674 of file preprocessor.cpp.

◆ stack_pos

int preprocessor_data::token_desc::stack_pos

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

Definition at line 673 of file preprocessor.cpp.

◆ type

token_type preprocessor_data::token_desc::type

Definition at line 670 of file preprocessor.cpp.


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