Flutter Engine
The Flutter Engine
Namespaces | Macros | Functions | Variables
main_options.cc File Reference
#include "bin/main_options.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bin/dartdev_isolate.h"
#include "bin/error_exit.h"
#include "bin/file_system_watcher.h"
#include "bin/options.h"
#include "bin/platform.h"
#include "bin/utils.h"
#include "platform/syslog.h"
#include "bin/security_context.h"
#include "bin/socket.h"
#include "include/dart_api.h"
#include "platform/assert.h"
#include "platform/globals.h"
#include "platform/hashmap.h"

Go to the source code of this file.

Namespaces

namespace  dart
 
namespace  dart::bin
 

Macros

#define OPTION_FIELD(variable)   Options::variable##_
 
#define STRING_OPTION_DEFINITION(name, variable)
 
#define BOOL_OPTION_DEFINITION(name, variable)
 
#define SHORT_BOOL_OPTION_DEFINITION(short_name, long_name, variable)
 
#define ENUM_OPTION_DEFINITION(name, type, variable)    DEFINE_ENUM_OPTION(name, type, OPTION_FIELD(variable))
 
#define CB_OPTION_DEFINITION(callback)
 
#define IS_DEBUG_OPTION(name, arg)
 
#define HANDLE_DARTDEV_VM_DEBUG_OPTIONS(V, arg)
 

Functions

 dart::bin::DEFINE_STRING_OPTION_CB (dfe, { Options::dfe() ->set_frontend_filename(value);})
 
static void dart::bin::hot_reload_test_mode_callback (CommandLineOptions *vm_options)
 
 dart::bin::DEFINE_BOOL_OPTION_CB (hot_reload_test_mode, hot_reload_test_mode_callback)
 
static void dart::bin::hot_reload_rollback_test_mode_callback (CommandLineOptions *vm_options)
 
 dart::bin::DEFINE_BOOL_OPTION_CB (hot_reload_rollback_test_mode, hot_reload_rollback_test_mode_callback)
 
static bool dart::bin::IsOption (const char *arg, const char *option)
 

Variables

static const char *const dart::bin::kSnapshotKindNames []
 
static const char *const dart::bin::kVerbosityLevelNames []
 

Macro Definition Documentation

◆ BOOL_OPTION_DEFINITION

#define BOOL_OPTION_DEFINITION (   name,
  variable 
)
Value:
bool OPTION_FIELD(variable) = false; \
DEFINE_BOOL_OPTION(name, OPTION_FIELD(variable))
#define OPTION_FIELD(variable)
Definition: main_options.cc:47
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32

Definition at line 55 of file main_options.cc.

◆ CB_OPTION_DEFINITION

#define CB_OPTION_DEFINITION (   callback)
Value:
static bool callback##Helper(const char* arg, CommandLineOptions* o) { \
return Options::callback(arg, o); \
} \
DEFINE_CB_OPTION(callback##Helper)
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
void Helper(uword arg)

Definition at line 75 of file main_options.cc.

◆ ENUM_OPTION_DEFINITION

#define ENUM_OPTION_DEFINITION (   name,
  type,
  variable 
)     DEFINE_ENUM_OPTION(name, type, OPTION_FIELD(variable))

Definition at line 70 of file main_options.cc.

◆ HANDLE_DARTDEV_VM_DEBUG_OPTIONS

#define HANDLE_DARTDEV_VM_DEBUG_OPTIONS (   V,
  arg 
)
Value:
V("--enable-asserts", arg) \
V("--pause-isolates-on-exit", arg) \
V("--no-pause-isolates-on-exit", arg) \
V("--pause-isolates-on-start", arg) \
V("--no-pause-isolates-on-start", arg) \
V("--pause-isolates-on-unhandled-exception", arg) \
V("--no-pause-isolates-on-unhandled-exception", arg) \
V("--warn-on-pause-with-no-debugger", arg) \
V("--no-warn-on-pause-with-no-debugger", arg) \
V("--timeline-streams", arg) \
V("--timeline-recorder", arg) \
V("--enable-experiment", arg)
#define V(name)
Definition: raw_object.h:125

◆ IS_DEBUG_OPTION

#define IS_DEBUG_OPTION (   name,
  arg 
)
Value:
if (strncmp(name, arg, strlen(name)) == 0) { \
vm_options->AddArgument(arg); \
return true; \
}

◆ OPTION_FIELD

#define OPTION_FIELD (   variable)    Options::variable##_

Definition at line 47 of file main_options.cc.

◆ SHORT_BOOL_OPTION_DEFINITION

#define SHORT_BOOL_OPTION_DEFINITION (   short_name,
  long_name,
  variable 
)
Value:
bool OPTION_FIELD(variable) = false; \
DEFINE_BOOL_OPTION_SHORT(short_name, long_name, OPTION_FIELD(variable))

Definition at line 64 of file main_options.cc.

◆ STRING_OPTION_DEFINITION

#define STRING_OPTION_DEFINITION (   name,
  variable 
)
Value:
const char* OPTION_FIELD(variable) = nullptr; \
DEFINE_STRING_OPTION(name, OPTION_FIELD(variable))

Definition at line 49 of file main_options.cc.