Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
service_isolate.cc File Reference
#include "service_isolate.h"
#include "flutter/fml/logging.h"
#include "third_party/dart/runtime/include/bin/dart_io_api.h"
#include "third_party/tonic/converter/dart_converter.h"
#include "third_party/tonic/dart_library_natives.h"
#include "third_party/tonic/dart_microtask_queue.h"
#include "third_party/tonic/dart_state.h"
#include "third_party/tonic/typed_data/typed_list.h"
#include "builtin_libraries.h"
#include "dart_component_controller.h"

Go to the source code of this file.

Namespaces

namespace  dart_runner
 

Macros

#define SHUTDOWN_ON_ERROR(handle)
 

Functions

Dart_Isolate dart_runner::CreateServiceIsolate (const char *uri, Dart_IsolateFlags *flags_unused, char **error)
 
Dart_Handle dart_runner::GetVMServiceAssetsArchiveCallback ()
 

Macro Definition Documentation

◆ SHUTDOWN_ON_ERROR

#define SHUTDOWN_ON_ERROR (   handle)
Value:
if (Dart_IsError(handle)) { \
*error = strdup(Dart_GetError(handle)); \
FML_LOG(ERROR) << error; \
Dart_ExitScope(); \
Dart_ShutdownIsolate(); \
return nullptr; \
}
DART_EXPORT bool Dart_IsError(Dart_Handle handle)
DART_EXPORT const char * Dart_GetError(Dart_Handle handle)
const uint8_t uint32_t uint32_t GError ** error
#define ERROR(message)

Definition at line 40 of file service_isolate.cc.

41 { \
42 *error = strdup(Dart_GetError(handle)); \
43 FML_LOG(ERROR) << error; \
44 Dart_ExitScope(); \
45 Dart_ShutdownIsolate(); \
46 return nullptr; \
47 }
char * strdup(const char *str1)