Flutter Engine
The Flutter Engine
Classes | Macros
CommandLineFlags.h File Reference
#include "include/core/SkString.h"
#include "include/private/base/SkTArray.h"
#include "include/private/base/SkTDArray.h"
#include "src/core/SkTHash.h"

Go to the source code of this file.

Classes

class  CommandLineFlags
 
class  CommandLineFlags::StringArray
 
class  SkFlagInfo
 

Macros

#define TO_STRING2(s)   #s
 
#define TO_STRING(s)   TO_STRING2(s)
 
#define DEFINE_bool(name, defaultValue, helpString)
 
#define DEFINE_bool2(name, shortName, defaultValue, helpString)
 
#define DECLARE_bool(name)   extern bool FLAGS_##name;
 
#define DEFINE_string(name, defaultValue, helpString)
 
#define DEFINE_extended_string(name, defaultValue, helpString, extendedHelpString)
 
#define DEFINE_string2(name, shortName, defaultValue, helpString)
 
#define DECLARE_string(name)   extern CommandLineFlags::StringArray FLAGS_##name;
 
#define DEFINE_int(name, defaultValue, helpString)
 
#define DEFINE_int_2(name, shortName, defaultValue, helpString)
 
#define DECLARE_int(name)   extern int FLAGS_##name;
 
#define DEFINE_double(name, defaultValue, helpString)
 
#define DECLARE_double(name)   extern double FLAGS_##name;
 

Macro Definition Documentation

◆ DECLARE_bool

#define DECLARE_bool (   name)    extern bool FLAGS_##name;

Definition at line 230 of file CommandLineFlags.h.

◆ DECLARE_double

#define DECLARE_double (   name)    extern double FLAGS_##name;

Definition at line 271 of file CommandLineFlags.h.

◆ DECLARE_int

#define DECLARE_int (   name)    extern int FLAGS_##name;

Definition at line 264 of file CommandLineFlags.h.

◆ DECLARE_string

#define DECLARE_string (   name)    extern CommandLineFlags::StringArray FLAGS_##name;

Definition at line 252 of file CommandLineFlags.h.

◆ DEFINE_bool

#define DEFINE_bool (   name,
  defaultValue,
  helpString 
)
Value:
bool FLAGS_##name; \
[[maybe_unused]] static bool unused_##name = SkFlagInfo::CreateBoolFlag( \
TO_STRING(name), nullptr, &FLAGS_##name, defaultValue, helpString)
#define TO_STRING(s)
static bool CreateBoolFlag(const char *name, const char *shortName, bool *pBool, bool defaultValue, const char *helpString)
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32

Definition at line 218 of file CommandLineFlags.h.

◆ DEFINE_bool2

#define DEFINE_bool2 (   name,
  shortName,
  defaultValue,
  helpString 
)
Value:
bool FLAGS_##name; \
[[maybe_unused]] static bool unused_##name = SkFlagInfo::CreateBoolFlag( \
TO_STRING(name), TO_STRING(shortName), &FLAGS_##name, defaultValue, helpString)

Definition at line 225 of file CommandLineFlags.h.

◆ DEFINE_double

#define DEFINE_double (   name,
  defaultValue,
  helpString 
)
Value:
double FLAGS_##name; \
[[maybe_unused]] static bool unused_##name = \
SkFlagInfo::CreateDoubleFlag(TO_STRING(name), &FLAGS_##name, defaultValue, helpString)
static bool CreateDoubleFlag(const char *name, double *pDouble, double defaultValue, const char *helpString)

Definition at line 266 of file CommandLineFlags.h.

◆ DEFINE_extended_string

#define DEFINE_extended_string (   name,
  defaultValue,
  helpString,
  extendedHelpString 
)
Value:
[[maybe_unused]] static bool unused_##name = SkFlagInfo::CreateStringFlag( \
TO_STRING(name), nullptr, &FLAGS_##name, defaultValue, helpString, extendedHelpString)
static bool CreateStringFlag(const char *name, const char *shortName, CommandLineFlags::StringArray *pStrings, const char *defaultValue, const char *helpString, const char *extendedHelpString)

Definition at line 236 of file CommandLineFlags.h.

◆ DEFINE_int

#define DEFINE_int (   name,
  defaultValue,
  helpString 
)
Value:
int FLAGS_##name; \
[[maybe_unused]] static bool unused_##name = \
SkFlagInfo::CreateIntFlag(TO_STRING(name), &FLAGS_##name, defaultValue, helpString)
static bool CreateIntFlag(const char *name, int *pInt, int defaultValue, const char *helpString)

Definition at line 254 of file CommandLineFlags.h.

◆ DEFINE_int_2

#define DEFINE_int_2 (   name,
  shortName,
  defaultValue,
  helpString 
)
Value:
int FLAGS_##name; \
[[maybe_unused]] static bool unused_##name = SkFlagInfo::CreateIntFlag( \
TO_STRING(name), TO_STRING(shortName), &FLAGS_##name, defaultValue, helpString)

Definition at line 259 of file CommandLineFlags.h.

◆ DEFINE_string

#define DEFINE_string (   name,
  defaultValue,
  helpString 
)
Value:
[[maybe_unused]] static bool unused_##name = SkFlagInfo::CreateStringFlag( \
TO_STRING(name), nullptr, &FLAGS_##name, defaultValue, helpString, nullptr)

Definition at line 232 of file CommandLineFlags.h.

◆ DEFINE_string2

#define DEFINE_string2 (   name,
  shortName,
  defaultValue,
  helpString 
)
Value:
[[maybe_unused]] static bool unused_##name = SkFlagInfo::CreateStringFlag(TO_STRING(name), \
TO_STRING(shortName),\
&FLAGS_##name, \
defaultValue, \
helpString, \
nullptr)

Definition at line 243 of file CommandLineFlags.h.

◆ TO_STRING

#define TO_STRING (   s)    TO_STRING2(s)

Definition at line 216 of file CommandLineFlags.h.

◆ TO_STRING2

#define TO_STRING2 (   s)    #s

Definition at line 215 of file CommandLineFlags.h.