2 * Copyright (c) 2014-present, Facebook, Inc.
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
11 #define YG_EXTERN_C_BEGIN extern "C" {
12 #define YG_EXTERN_C_END }
14 #define YG_EXTERN_C_BEGIN
15 #define YG_EXTERN_C_END
19 #define WIN_EXPORT __declspec(dllexport)
25 #define WIN_STRUCT(type) type *
26 #define WIN_STRUCT_REF(value) &value
28 #define WIN_STRUCT(type) type
29 #define WIN_STRUCT_REF(value) value
33 // Cannot use NSInteger as NSInteger has a different size than int (which is the default type of a
35 // Therefor when linking the Yoga C library into obj-c the header is a missmatch for the Yoga ABI.
36 #define YG_ENUM_BEGIN(name) NS_ENUM(int, name)
37 #define YG_ENUM_END(name)
39 #define YG_ENUM_BEGIN(name) enum name
40 #define YG_ENUM_END(name) name