yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
flag.h File Reference
#include <memory>
#include <sstream>
#include <stdexcept>
#include <string>
#include <unordered_map>
#include <vector>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  yaze::util::IFlag
 
class  yaze::util::Flag< T >
 
class  yaze::util::FlagRegistry
 
class  yaze::util::FlagParser
 

Namespaces

namespace  yaze
 Main namespace for the application.
 
namespace  yaze::util
 

Macros

#define DEFINE_FLAG(type, name, default_val, help_text)
 
#define FLAG_VALUE(name)   (FLAGS_##name->Get())
 

Functions

FlagRegistryyaze::util::global_flag_registry ()
 

Macro Definition Documentation

◆ DEFINE_FLAG

#define DEFINE_FLAG (   type,
  name,
  default_val,
  help_text 
)
Value:
yaze::util::Flag<type>* FLAGS_##name = \
yaze::util::global_flag_registry()->RegisterFlag<type>( \
"--" #name, (default_val), (help_text))

Definition at line 122 of file flag.h.

◆ FLAG_VALUE

#define FLAG_VALUE (   name)    (FLAGS_##name->Get())

Definition at line 128 of file flag.h.