proxygen
GFlags.h File Reference

Go to the source code of this file.

Classes

class  google::FlagSaver
 

Namespaces

 google
 

Macros

#define DECLARE_VARIABLE()   static_assert(false, "You shouldn't be using GFlags internals.");
 
#define FOLLY_DECLARE_FLAG(_type, _shortType, _name)
 
#define DECLARE_bool(_name)   FOLLY_DECLARE_FLAG(bool, B, _name)
 
#define DECLARE_double(_name)   FOLLY_DECLARE_FLAG(double, D, _name)
 
#define DECLARE_int32(_name)   FOLLY_DECLARE_FLAG(int, I, _name)
 
#define DECLARE_int64(_name)   FOLLY_DECLARE_FLAG(long long, I64, _name)
 
#define DECLARE_uint32(_name)   FOLLY_DECLARE_FLAG(unsigned long, U32, _name)
 
#define DECLARE_uint64(_name)   FOLLY_DECLARE_FLAG(unsigned long long, U64, _name)
 
#define DECLARE_string(_name)   FOLLY_DECLARE_FLAG(std::string, S, _name)
 
#define FOLLY_DEFINE_FLAG(_type, _shortType, _name, _default)
 
#define DEFINE_bool(_name, _default, _description)   FOLLY_DEFINE_FLAG(bool, B, _name, _default)
 
#define DEFINE_double(_name, _default, _description)   FOLLY_DEFINE_FLAG(double, D, _name, _default)
 
#define DEFINE_int32(_name, _default, _description)   FOLLY_DEFINE_FLAG(int, I, _name, _default)
 
#define DEFINE_int64(_name, _default, _description)   FOLLY_DEFINE_FLAG(long long, I64, _name, _default)
 
#define DEFINE_uint32(_name, _default, _description)   FOLLY_DEFINE_FLAG(unsigned long, U32, _name, _default)
 
#define DEFINE_uint64(_name, _default, _description)   FOLLY_DEFINE_FLAG(unsigned long long, U64, _name, _default)
 
#define DEFINE_string(_name, _default, _description)   FOLLY_DEFINE_FLAG(std::string, S, _name, _default)
 

Macro Definition Documentation

#define DECLARE_bool (   _name)    FOLLY_DECLARE_FLAG(bool, B, _name)

Definition at line 36 of file GFlags.h.

#define DECLARE_double (   _name)    FOLLY_DECLARE_FLAG(double, D, _name)

Definition at line 37 of file GFlags.h.

#define DECLARE_int32 (   _name)    FOLLY_DECLARE_FLAG(int, I, _name)

Definition at line 38 of file GFlags.h.

#define DECLARE_int64 (   _name)    FOLLY_DECLARE_FLAG(long long, I64, _name)

Definition at line 39 of file GFlags.h.

#define DECLARE_string (   _name)    FOLLY_DECLARE_FLAG(std::string, S, _name)

Definition at line 42 of file GFlags.h.

#define DECLARE_uint32 (   _name)    FOLLY_DECLARE_FLAG(unsigned long, U32, _name)

Definition at line 40 of file GFlags.h.

#define DECLARE_uint64 (   _name)    FOLLY_DECLARE_FLAG(unsigned long long, U64, _name)

Definition at line 41 of file GFlags.h.

#define DECLARE_VARIABLE ( )    static_assert(false, "You shouldn't be using GFlags internals.");

Definition at line 27 of file GFlags.h.

#define DEFINE_bool (   _name,
  _default,
  _description 
)    FOLLY_DEFINE_FLAG(bool, B, _name, _default)

Definition at line 50 of file GFlags.h.

#define DEFINE_double (   _name,
  _default,
  _description 
)    FOLLY_DEFINE_FLAG(double, D, _name, _default)

Definition at line 52 of file GFlags.h.

#define DEFINE_int32 (   _name,
  _default,
  _description 
)    FOLLY_DEFINE_FLAG(int, I, _name, _default)

Definition at line 54 of file GFlags.h.

Referenced by folly::test::atomic_notify_one().

#define DEFINE_int64 (   _name,
  _default,
  _description 
)    FOLLY_DEFINE_FLAG(long long, I64, _name, _default)

Definition at line 56 of file GFlags.h.

#define DEFINE_string (   _name,
  _default,
  _description 
)    FOLLY_DEFINE_FLAG(std::string, S, _name, _default)

Definition at line 62 of file GFlags.h.

#define DEFINE_uint32 (   _name,
  _default,
  _description 
)    FOLLY_DEFINE_FLAG(unsigned long, U32, _name, _default)

Definition at line 58 of file GFlags.h.

#define DEFINE_uint64 (   _name,
  _default,
  _description 
)    FOLLY_DEFINE_FLAG(unsigned long long, U64, _name, _default)

Definition at line 60 of file GFlags.h.

#define FOLLY_DECLARE_FLAG (   _type,
  _shortType,
  _name 
)
Value:
namespace fL##_shortType { \
extern _type FLAGS_##_name; \
} \
using fL##_shortType::FLAGS_##_name

Definition at line 30 of file GFlags.h.

#define FOLLY_DEFINE_FLAG (   _type,
  _shortType,
  _name,
  _default 
)
Value:
namespace fL##_shortType { \
_type FLAGS_##_name = _default; \
} \
using fL##_shortType::FLAGS_##_name

Definition at line 44 of file GFlags.h.