Flutter Engine
 
Loading...
Searching...
No Matches
dart_dl.cc
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4#include "dart_dl.h"
5
7#include "include/dart_api_dl.h"
8
9int zircon_dart_dl_initialize(void* initialize_api_dl_data) {
10 if (Dart_InitializeApiDL(initialize_api_dl_data) != 0) {
11 FML_LOG(ERROR) << "Failed to initialise Dart VM API";
12 return -1;
13 }
14 // Check symbols used are present
15 if (Dart_NewFinalizableHandle_DL == NULL) {
16 FML_LOG(ERROR) << "Unable to find Dart API finalizer symbols.";
17 return -1;
18 }
19 return 1;
20}
int zircon_dart_dl_initialize(void *initialize_api_dl_data)
Definition dart_dl.cc:9
#define FML_LOG(severity)
Definition logging.h:101