The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 456 of file preprocessor.cpp.

Member Enumeration Documentation

Enumerator
START 
PROCESS_IF 
PROCESS_ELSE 
SKIP_IF 
SKIP_ELSE 
STRING 
VERBATIM 
MACRO_SPACE 
MACRO_CHUNK 
MACRO_PARENS 

Definition at line 458 of file preprocessor.cpp.

Constructor & Destructor Documentation

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

Definition at line 470 of file preprocessor.cpp.

Member Data Documentation

int preprocessor_data::token_desc::linenum

Definition at line 479 of file preprocessor.cpp.

Referenced by preprocessor_data::get_chunk().

int preprocessor_data::token_desc::stack_pos

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

Definition at line 478 of file preprocessor.cpp.

Referenced by preprocessor_data::get_chunk().

TOKEN_TYPE preprocessor_data::token_desc::type

Definition at line 476 of file preprocessor.cpp.

Referenced by preprocessor_data::get_chunk().


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