The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Macros | Functions
options.cpp File Reference
#include "wesmage/options.hpp"
#include "wesmage/exit.hpp"
#include "wesmage/filter.hpp"
#include <cassert>
#include <cstdlib>
#include <ctime>
#include <iostream>
Include dependency graph for options.cpp:

Go to the source code of this file.

Macros

#define VALIDATE_NOT_PAST_END
 

Functions

static void print_option (std::ostream &stream, const std::string &option, std::string description)
 
static std::ostream & operator<< (std::ostream &stream, const tfilter_description &fd)
 
static void print_help (const int exit_status)
 

Macro Definition Documentation

#define VALIDATE_NOT_PAST_END
Value:
do { \
if(i >= argc) { \
std::cerr << "Error: Required argument for the option »" \
<< option \
<< "« is not supplied.\n"; \
\
throw texit(EXIT_FAILURE); \
} \
} while(0)
GLuint GLenum option
Definition: glew.h:2815
This exception when throw should terminate the application.
Definition: sdl2.cpp:35
size_t i
Definition: function.cpp:1057
CALLABLE_WRAPPER_INPUT_END if(key=="terrain")

Definition at line 145 of file options.cpp.

Referenced by toptions::parse().

Function Documentation

static std::ostream& operator<< ( std::ostream &  stream,
const tfilter_description fd 
)
static
static void print_help ( const int  exit_status)
static

Definition at line 108 of file options.cpp.

References filter_list().

Referenced by toptions::parse().

static void print_option ( std::ostream &  stream,
const std::string option,
std::string  description 
)
static

Definition at line 45 of file options.cpp.

References schema_validation::eol.

Referenced by operator<<().