Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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/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:1530
DART_EXPORT bool Dart_IsError(Dart_Handle handle)
DART_EXPORT const char * Dart_GetError(Dart_Handle handle)
GAsyncResult * result

Definition at line 22 of file dartdev_isolate.cc.

23 { \
24 ProcessError(Dart_GetError(result), kErrorExitCode); \
25 if (send_port_id != ILLEGAL_PORT) { \
26 Dart_CloseNativePort(send_port_id); \
27 } \
28 Dart_ExitScope(); \
29 Dart_ShutdownIsolate(); \
30 return; \
31 }