blob: e7181012e7778c2b7f9daeac8e02afae80835e5e [file]
// Copyright (c) 2023, 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.
#include "ffi_test_fields.h"
DART_EXPORT_FIELD int32_t globalInt;
DART_EXPORT_FIELD struct Coord globalStruct;
DART_EXPORT_FIELD const char* globalString = "Hello Dart!";
DART_EXPORT_FIELD int globalArray[] = {1, 2, 3};
DART_EXPORT_FIELD double identity3x3[3][3] = {{1, 0, 0}, {0, 1, 0}, {0, 0, 1}};
DART_EXPORT_FIELD struct Coord globalStructArray[] = {
{.x = 1.0, .y = 2.0, .next = 0x0},
{.x = 3.0, .y = 4.0, .next = 0x0}};