Flutter Engine
The Flutter Engine
Classes | Namespaces | Macros | Typedefs | Functions | Variables
flags.h File Reference
#include "platform/assert.h"
#include "vm/flag_list.h"
#include "vm/globals.h"

Go to the source code of this file.

Classes

class  dart::Flags
 

Namespaces

namespace  dart
 

Macros

#define DECLARE_FLAG(type, name)   extern type FLAG_##name
 
#define DEFINE_FLAG(type, name, default_value, comment)
 
#define DEFINE_FLAG_HANDLER(handler, name, comment)    bool DUMMY_##name = Flags::RegisterFlagHandler(handler, #name, comment);
 
#define DEFINE_OPTION_HANDLER(handler, name, comment)    bool DUMMY_##name = Flags::RegisterOptionHandler(handler, #name, comment);
 
#define PRODUCT_FLAG_MACRO(name, type, default_value, comment)    extern type FLAG_##name;
 
#define DEBUG_FLAG_MACRO(name, type, default_value, comment)    const type FLAG_##name = default_value;
 
#define RELEASE_FLAG_MACRO(name, product_value, type, default_value, comment)    extern type FLAG_##name;
 
#define PRECOMPILE_FLAG_MACRO(name, precompiled_value, product_value, type, default_value, comment)    extern type FLAG_##name;
 

Typedefs

typedef const char * charp
 
typedef void(* dart::FlagHandler) (bool value)
 
typedef void(* dart::OptionHandler) (const char *value)
 

Functions

 dart::FLAG_LIST (PRODUCT_FLAG_MACRO, RELEASE_FLAG_MACRO, PRECOMPILE_FLAG_MACRO, DEBUG_FLAG_MACRO) const expr bool FLAG_target_thread_sanitizer
 

Variables

constexpr bool dart::FLAG_target_memory_sanitizer = false
 

Macro Definition Documentation

◆ DEBUG_FLAG_MACRO

#define DEBUG_FLAG_MACRO (   name,
  type,
  default_value,
  comment 
)     const type FLAG_##name = default_value;

Definition at line 117 of file flags.h.

◆ DECLARE_FLAG

#define DECLARE_FLAG (   type,
  name 
)    extern type FLAG_##name

Definition at line 14 of file flags.h.

◆ DEFINE_FLAG

#define DEFINE_FLAG (   type,
  name,
  default_value,
  comment 
)
Value:
type FLAG_##name = \
Flags::Register_##type(&FLAG_##name, #name, default_value, comment);
GLenum type
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32

Definition at line 16 of file flags.h.

◆ DEFINE_FLAG_HANDLER

#define DEFINE_FLAG_HANDLER (   handler,
  name,
  comment 
)     bool DUMMY_##name = Flags::RegisterFlagHandler(handler, #name, comment);

Definition at line 20 of file flags.h.

◆ DEFINE_OPTION_HANDLER

#define DEFINE_OPTION_HANDLER (   handler,
  name,
  comment 
)     bool DUMMY_##name = Flags::RegisterOptionHandler(handler, #name, comment);

Definition at line 23 of file flags.h.

◆ PRECOMPILE_FLAG_MACRO

#define PRECOMPILE_FLAG_MACRO (   name,
  precompiled_value,
  product_value,
  type,
  default_value,
  comment 
)     extern type FLAG_##name;

Definition at line 145 of file flags.h.

◆ PRODUCT_FLAG_MACRO

#define PRODUCT_FLAG_MACRO (   name,
  type,
  default_value,
  comment 
)     extern type FLAG_##name;

Definition at line 110 of file flags.h.

◆ RELEASE_FLAG_MACRO

#define RELEASE_FLAG_MACRO (   name,
  product_value,
  type,
  default_value,
  comment 
)     extern type FLAG_##name;

Definition at line 143 of file flags.h.

Typedef Documentation

◆ charp

typedef const char* charp

Definition at line 12 of file flags.h.