Flutter Engine
dart_invoke.h
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 
5 #ifndef LIB_TONIC_LOGGING_DART_INVOKE_H_
6 #define LIB_TONIC_LOGGING_DART_INVOKE_H_
7 
8 #include <initializer_list>
9 
10 #include "third_party/dart/runtime/include/dart_api.h"
11 
12 namespace tonic {
13 
14 Dart_Handle DartInvokeField(Dart_Handle target,
15  const char* name,
16  std::initializer_list<Dart_Handle> args);
17 
18 Dart_Handle DartInvoke(Dart_Handle closure,
19  std::initializer_list<Dart_Handle> args);
20 Dart_Handle DartInvokeVoid(Dart_Handle closure);
21 
22 } // namespace tonic
23 
24 #endif // LIB_TONIC_LOGGING_DART_INVOKE_H_
G_BEGIN_DECLS FlValue * args
Dart_Handle DartInvoke(Dart_Handle closure, std::initializer_list< Dart_Handle > args)
Definition: dart_invoke.cc:20
Dart_Handle DartInvokeField(Dart_Handle target, const char *name, std::initializer_list< Dart_Handle > args)
Definition: dart_invoke.cc:12
std::function< void()> closure
Definition: closure.h:14
const char * name
Definition: fuchsia.cc:50
Dart_Handle DartInvokeVoid(Dart_Handle closure)
Definition: dart_invoke.cc:29