Add support for using Yoga from swift on non Darwin platforms. #1690
@@ -49,7 +49,7 @@
|
||||
#define YG_ENUM_END(name)
|
||||
#else
|
||||
#define YG_ENUM_BEGIN(name) enum name
|
||||
#define YG_ENUM_END(name) name
|
||||
#define YG_ENUM_END(name) __attribute__((enum_extensibility(closed))) name
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Reference in New Issue
Block a user
A couple of these are flag enums, which would also need to be declared I think
@NickGerleman Are the only bitmask flags
YGErrata & YGExperimentalFeature
or are there others?Just realised that enums.py specifies that only
Errata
is a bitset enum.How do you feel about us adding a
YG_ENUM_FLAG_DECL
macro, and then updating enums.py to checkBITSET_ENUMS
to decide on which macro to use?That sounds good to me!
@NickGerleman , I took a quick stab at this on this branch, but I've run into a compiler error I'm not sure how to approach.
Do you have thoughts on the best way to handle that?