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
6
#include "
flutter/fml/logging.h
"
7
#include "include/dart_api_dl.h"
8
9
int
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
}
zircon_dart_dl_initialize
int zircon_dart_dl_initialize(void *initialize_api_dl_data)
Definition
dart_dl.cc:9
dart_dl.h
logging.h
FML_LOG
#define FML_LOG(severity)
Definition
logging.h:101
shell
platform
fuchsia
dart-pkg
zircon_ffi
dart_dl.cc
Generated on Thu Nov 6 2025 16:11:27 for Flutter Engine by
1.9.8