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::ostream & | operator<< (std::ostream &stream, const preproc_define &def) |
std::string | lineno_string (const std::string &lineno) |
std::ostream & | operator<< (std::ostream &stream, const preproc_map::value_type &def) |
std::istream * | preprocess_file (std::string const &fname, preproc_map *defines=nullptr) |
Function to use the WML preprocessor on a file. More... | |
void | preprocess_resource (const std::string &res_name, preproc_map *defines_map, bool write_cfg=false, bool write_plain_cfg=false, std::string target_directory="") |
typedef std::map< std::string, preproc_define > preproc_map |
Definition at line 30 of file preprocessor.hpp.
std::string lineno_string | ( | const std::string & | lineno | ) |
Definition at line 353 of file preprocessor.cpp.
References get_filename(), i, pos, preprocessor_error_detail_prefix, and utils::quoted_split().
Referenced by schema_validation::at(), preprocessor_streambuf::error(), preprocessor_data::get_chunk(), and preprocessor_streambuf::warning().
std::ostream& operator<< | ( | std::ostream & | stream, |
const preproc_define & | def | ||
) |
Definition at line 177 of file preprocessor.cpp.
References preproc_define::location, and preproc_define::value.
std::ostream& operator<< | ( | std::ostream & | stream, |
const preproc_map::value_type & | def | ||
) |
Definition at line 182 of file preprocessor.cpp.
std::istream* preprocess_file | ( | std::string const & | fname, |
preproc_map * | defines = nullptr |
||
) |
Function to use the WML preprocessor on a file.
defines | A map of symbols defined. |
void preprocess_resource | ( | const std::string & | res_name, |
preproc_map * | defines_map, | ||
bool | write_cfg = false , |
||
bool | write_plain_cfg = false , |
||
std::string | target_directory = "" |
||
) |