Flutter Engine
The Flutter Engine
Namespaces | Macros
dart_service_isolate.cc File Reference
#include "flutter/runtime/dart_service_isolate.h"
#include <algorithm>
#include <cstring>
#include "flutter/fml/logging.h"
#include "flutter/fml/posix_wrappers.h"
#include "flutter/runtime/embedder_resources.h"
#include "third_party/dart/runtime/include/dart_api.h"
#include "third_party/tonic/converter/dart_converter.h"
#include "third_party/tonic/dart_library_natives.h"
#include "third_party/tonic/logging/dart_error.h"

Go to the source code of this file.

Namespaces

namespace  flutter
 

Macros

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

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 18 of file dart_service_isolate.cc.

◆ SHUTDOWN_ON_ERROR

#define SHUTDOWN_ON_ERROR (   handle)
Value:
if (Dart_IsError(handle)) { \
Dart_ExitScope(); \
Dart_ShutdownIsolate(); \
return false; \
}
DART_EXPORT const char * Dart_GetError(Dart_Handle handle)
const uint8_t uint32_t uint32_t GError ** error
char * strdup(const char *str1)

Definition at line 23 of file dart_service_isolate.cc.