blob: 1fbec2337fb8c950e88b0eff9c7c622fc9779268 [file] [log] [blame]
// Copyright 2015 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef LIB_TONIC_DART_INVOKE_H_
#define LIB_TONIC_DART_INVOKE_H_
#include <initializer_list>
#include "dart/runtime/include/dart_api.h"
namespace tonic {
bool DartInvokeField(Dart_Handle target,
const char* name,
std::initializer_list<Dart_Handle> args);
void DartInvoke(Dart_Handle closure, std::initializer_list<Dart_Handle> args);
void DartInvokeVoid(Dart_Handle closure);
} // namespace tonic
#endif // LIB_TONIC_DART_INVOKE_H_