From 1db55803f1a65e8c69852ac043d2fef1c9c5f026 Mon Sep 17 00:00:00 2001 From: David Aurelio Date: Tue, 29 Jan 2019 03:48:31 -0800 Subject: [PATCH] Add `YGMarkerLayout` Summary: @public adds a first `YGMarker`, and the accompanying data type. Reviewed By: SidharthGuglani Differential Revision: D13817588 fbshipit-source-id: 6007eb09d19cf4021989bad5b5e880adb16364a0 --- ReactCommon/yoga/yoga/YGMarker.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ReactCommon/yoga/yoga/YGMarker.h b/ReactCommon/yoga/yoga/YGMarker.h index df51d3b1be4895..b7904ef196796e 100644 --- a/ReactCommon/yoga/yoga/YGMarker.h +++ b/ReactCommon/yoga/yoga/YGMarker.h @@ -12,11 +12,16 @@ YG_EXTERN_C_BEGIN typedef struct YGNode* YGNodeRef; -typedef YG_ENUM_BEGIN(YGMarker) {} -YG_ENUM_END(YGMarker); +typedef YG_ENUM_BEGIN(YGMarker){ + YGMarkerLayout, +} YG_ENUM_END(YGMarker); -typedef union { +typedef struct { int unused; +} YGMarkerLayoutData; + +typedef union { + YGMarkerLayoutData* layout; } YGMarkerData; typedef struct {