Flutter Engine
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

 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; \
}

Definition at line 18 of file dart_service_isolate.cc.

◆ SHUTDOWN_ON_ERROR

#define SHUTDOWN_ON_ERROR (   handle)
Value:
if (Dart_IsError(handle)) { \
*error = fml::strdup(Dart_GetError(handle)); \
Dart_ExitScope(); \
Dart_ShutdownIsolate(); \
return false; \
}
FlMethodResponse GError ** error
char * strdup(const char *str1)

Definition at line 23 of file dart_service_isolate.cc.

Referenced by flutter::DartServiceIsolate::Startup().