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_ |
25 |