blob: 1045f5fc1b6c8cdd4ca1aaf95b8d0480f7afdea8 [file] [log] [blame] [edit]
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:ffi';
void main() {
// Does nothing, Native's aren't resolved.
}
@Native<Int Function(Pointer<Int>, Int)>()
external int subtract(Pointer<Int> a, int b);
@Native<Pointer<Double> Function(Pointer<Float>, Pointer<Float>)>()
external Pointer<Double> dividePrecision(Pointer<Float> a, Pointer<Float> b);
@Native<Void Function(Pointer)>(symbol: 'free')
external void posixFree(Pointer pointer);
@Native<Void Function(Pointer)>(symbol: 'CoTaskMemFree')
external void winCoTaskMemFree(Pointer pv);