From ed765fe5085cf6e5c9bfb279f0accf1075f65f4d Mon Sep 17 00:00:00 2001 From: Emil Sjolander Date: Thu, 22 Dec 2016 02:57:18 -0800 Subject: [PATCH] Convert max cache count into a define Summary: This should not be an enum. A define makes a whole lot more sense Differential Revision: D4346529 fbshipit-source-id: 8641c4c5017d915d64e5884cae09ac8f01861337 --- yoga/Yoga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yoga/Yoga.c b/yoga/Yoga.c index 21f7290e..5dd21af1 100644 --- a/yoga/Yoga.c +++ b/yoga/Yoga.c @@ -42,7 +42,7 @@ typedef struct YGCachedMeasurement { // This value was chosen based on empiracle data. Even the most complicated // layouts should not require more than 16 entries to fit within the cache. -enum { YG_MAX_CACHED_RESULT_COUNT = 16 }; +#define YG_MAX_CACHED_RESULT_COUNT 16 typedef struct YGLayout { float position[4];