Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions | Variables
vmservice_impl.cc File Reference
#include "bin/vmservice_impl.h"
#include "include/dart_api.h"
#include "bin/builtin.h"
#include "bin/dartutils.h"
#include "bin/isolate_data.h"
#include "bin/main_options.h"
#include "bin/platform.h"
#include "bin/thread.h"
#include "bin/utils.h"
#include "platform/text_buffer.h"
#include "platform/utils.h"

Go to the source code of this file.

Classes

struct  dart::bin::VmServiceIONativeEntry
 

Namespaces

namespace  dart
 
namespace  dart::bin
 

Macros

#define RETURN_ERROR_HANDLE(handle)
 
#define SHUTDOWN_ON_ERROR(handle)
 

Functions

void dart::bin::NotifyServerState (Dart_NativeArguments args)
 
static void dart::bin::Shutdown (Dart_NativeArguments args)
 
static Dart_NativeFunction dart::bin::VmServiceIONativeResolver (Dart_Handle name, int num_arguments, bool *auto_setup_scope)
 
const uint8_t * dart::bin::VmServiceIONativeSymbol (Dart_NativeFunction nf)
 

Variables

static constexpr const char * dart::bin::kVMServiceIOLibraryUri = "dart:vmservice_io"
 
static VmServiceIONativeEntry dart::bin::_VmServiceIONativeEntries []
 

Macro Definition Documentation

◆ RETURN_ERROR_HANDLE

#define RETURN_ERROR_HANDLE (   handle)
Value:
if (Dart_IsError(handle)) { \
return handle; \
}
DART_EXPORT bool Dart_IsError(Dart_Handle handle)

Definition at line 24 of file vmservice_impl.cc.

25 { \
26 return handle; \
27 }

◆ SHUTDOWN_ON_ERROR

#define SHUTDOWN_ON_ERROR (   handle)
Value:
if (Dart_IsError(handle)) { \
error_msg_ = Utils::StrDup(Dart_GetError(handle)); \
Dart_ExitScope(); \
Dart_ShutdownIsolate(); \
return false; \
}
DART_EXPORT const char * Dart_GetError(Dart_Handle handle)

Definition at line 29 of file vmservice_impl.cc.

30 { \
31 error_msg_ = Utils::StrDup(Dart_GetError(handle)); \
32 Dart_ExitScope(); \
33 Dart_ShutdownIsolate(); \
34 return false; \
35 }