Autogenerate enum defenitions for all languages
Summary: Keeping enums in sync between all the different bindings is tedious and error prone. Getting one of the values in the incorrect order could lead to many hours of debugging as they are passed as ints to C. This diff adds a simple python script to generate these enums for all languages. This also makes it much easier to add support for more languages in the future Reviewed By: gkassabli Differential Revision: D4174263 fbshipit-source-id: 478961a8f683e196704d3c6ea1505a05c85fcb10
This commit is contained in:
committed by
Facebook Github Bot
parent
ac4d0ab2a1
commit
d1c555fede
@@ -122,6 +122,8 @@ static int _csslayoutAndroidLog(CSSLogLevel level, const char *format, va_list a
|
||||
case CSSLogLevelVerbose:
|
||||
androidLevel = ANDROID_LOG_VERBOSE;
|
||||
break;
|
||||
case CSSLogLevelCount:
|
||||
break;
|
||||
}
|
||||
const int result = __android_log_vprint(androidLevel, "css-layout", format, args);
|
||||
return result;
|
||||
@@ -1824,6 +1826,7 @@ static void layoutNodeImpl(const CSSNodeRef node,
|
||||
leadingMainDim = betweenMainDim / 2;
|
||||
break;
|
||||
case CSSJustifyFlexStart:
|
||||
case CSSJustifyCount:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -2015,6 +2018,7 @@ static void layoutNodeImpl(const CSSNodeRef node,
|
||||
break;
|
||||
case CSSAlignAuto:
|
||||
case CSSAlignFlexStart:
|
||||
case CSSAlignCount:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -2074,6 +2078,7 @@ static void layoutNodeImpl(const CSSNodeRef node,
|
||||
break;
|
||||
}
|
||||
case CSSAlignAuto:
|
||||
case CSSAlignCount:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user