blob: 0d8474653a4cfb7611af8c2f8785ce9a1ed799c2 [file] [log] [blame]
// Copyright 2016 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_LOGGING_DART_INVOKE_H_
#define LIB_TONIC_LOGGING_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_LOGGING_DART_INVOKE_H_