PStack
2.0
Stack trace printer for MSVC and GCC binaries
|
Define the command-line options interface for the PStack application. More...
#include "pstack/pstack_options.hpp"
#include <climits>
#include <iostream>
#include <psystem/framework/iomanip.hpp>
#include <psystem/exception/ui_exception.hpp>
Classes | |
struct | pstack::pstack_options::options_data |
The full set of options information available to pstack::pstack_options. More... | |
Namespaces | |
anonymous_namespace{pstack_options.cpp} | |
Data local to this compilation unit. | |
pstack | |
Contains modules that make up the PStack stack-printing application. | |
Variables | |
pstack::pstack_options * | anonymous_namespace{pstack_options.cpp}::g_options = nullptr |
The options block is supposed to be a singleton. More... | |
Convenience Macros | |
#define | MAKE_OPTION_FLAG(opt) "-" opt |
Creates a string for a command-line flag. More... | |
#define | PRINT_OPTION(opt, desc) |
Used to print a help option. More... | |
#define | PRINT_OPTION_FLAG(opt, desc) |
Used to print a help option for a "flag.". More... | |
#define | PRINT_INDENTED(desc) std::cout << " " << desc << '\n' |
Print the continuation of a description in the help option output. More... | |
Define the command-line options interface for the PStack application.
#define MAKE_OPTION_FLAG | ( | opt | ) | "-" opt |
Creates a string for a command-line flag.
This is done by by appending the platform-specific option flag starting token (i.e., '-' in a "-h" flag) to the opt
parameter.
opt | The option flag — it should be a single letter to qualify as a "flag." This must be a quoted C string literal. |
#define PRINT_INDENTED | ( | desc | ) | std::cout << " " << desc << '\n' |
Print the continuation of a description in the help option output.
desc | The text to print after the indentation. |
#define PRINT_OPTION | ( | opt, | |
desc | |||
) |
Used to print a help option.
opt | The option (as the user would specify it). |
desc | A description of the option. |
#define PRINT_OPTION_FLAG | ( | opt, | |
desc | |||
) |
Used to print a help option for a "flag.".
A "flag" in this context is a single-letter command-line argument.
opt | The single letter for the flag. |
desc | A description of the option. |