preprocessor.hpp File Reference

#include <iosfwd>
#include <map>
#include <string>
#include <vector>

Include dependency graph for preprocessor.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  preproc_define
struct  preproc_config
struct  preproc_config::error

Typedefs

typedef std::map< std::string,
preproc_define
preproc_map

Functions

std::istream * preprocess_file (std::string const &fname, preproc_map *defines=NULL, std::string *error_log=NULL)
 Function to use the WML preprocessor on a file, and returns the resulting preprocessed file data.


Detailed Description

Definition in file preprocessor.hpp.


Typedef Documentation

typedef std::map< std::string, preproc_define > preproc_map

Definition at line 49 of file preprocessor.hpp.


Function Documentation

std::istream* preprocess_file ( std::string const &  fname,
preproc_map defines = NULL,
std::string *  error_log = NULL 
)

Function to use the WML preprocessor on a file, and returns the resulting preprocessed file data.

defines is a map of symbols defined.

Definition at line 950 of file preprocessor.cpp.

References buf, log_scope, and preprocessor_deleter::preprocessor_deleter().

Referenced by cutter::load_config(), font::load_font_config(), load_language_list(), gui2::load_settings(), main(), server::read_config(), read_tips_of_day(), and set_language().


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs