Flutter Engine
The Flutter Engine
Namespaces | Macros | Functions
dartdev_isolate.cc File Reference
#include "bin/dartdev_isolate.h"
#include <functional>
#include <memory>
#include "bin/directory.h"
#include "bin/error_exit.h"
#include "bin/exe_utils.h"
#include "bin/file.h"
#include "bin/lockers.h"
#include "bin/main_options.h"
#include "bin/platform.h"
#include "bin/process.h"
#include "include/dart_embedder_api.h"
#include "platform/utils.h"

Go to the source code of this file.

Namespaces

namespace  dart
 
namespace  dart::bin
 

Macros

#define CHECK_RESULT(result)
 

Functions

static Dart_CObjectdart::bin::GetArrayItem (Dart_CObject *message, intptr_t index)
 

Macro Definition Documentation

◆ CHECK_RESULT

#define CHECK_RESULT (   result)
Value:
if (Dart_IsError(result)) { \
ProcessError(Dart_GetError(result), kErrorExitCode); \
if (send_port_id != ILLEGAL_PORT) { \
Dart_CloseNativePort(send_port_id); \
} \
Dart_ExitScope(); \
Dart_ShutdownIsolate(); \
return; \
}
#define ILLEGAL_PORT
Definition: dart_api.h:1535
DART_EXPORT bool Dart_IsError(Dart_Handle handle)
DART_EXPORT const char * Dart_GetError(Dart_Handle handle)
GAsyncResult * result
constexpr int kErrorExitCode
Definition: error_exit.h:18

Definition at line 23 of file dartdev_isolate.cc.