Flutter Engine
 
Loading...
Searching...
No Matches
service_isolate.cc File Reference

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)
 

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; \
}
const uint8_t uint32_t uint32_t GError ** error

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)