Flutter Engine
The Flutter Engine
dart_dl.cc
Go to the documentation of this file.
1#include "dart_dl.h"
2
3#include "flutter/fml/logging.h"
5
6int zircon_dart_dl_initialize(void* initialize_api_dl_data) {
7 if (Dart_InitializeApiDL(initialize_api_dl_data) != 0) {
8 FML_LOG(ERROR) << "Failed to initialise Dart VM API";
9 return -1;
10 }
11 // Check symbols used are present
12 if (Dart_NewFinalizableHandle_DL == NULL) {
13 FML_LOG(ERROR) << "Unable to find Dart API finalizer symbols.";
14 return -1;
15 }
16 return 1;
17}
intptr_t Dart_InitializeApiDL(void *data)
Definition: dart_api_dl.c:45
int zircon_dart_dl_initialize(void *initialize_api_dl_data)
Definition: dart_dl.cc:6
#define FML_LOG(severity)
Definition: logging.h:82
#define ERROR(message)
Definition: elf_loader.cc:260