Enumerations with Underlying Type Supported? #87
Replies: 1 comment 1 reply
-
No C23-specific feature is supported (unless it happens to be one that was supported since a long time by gcc, but that's not one). In CFFI, all enums are assumed equal to Note however that you also can't use There are still other places where
|
Beta Was this translation helpful? Give feedback.
-
In the out-of-line API mode of usage, are enumerations with underlying types supported (C23)? As an example, assume the C source file has:
And the
ffibuilder.cdef()
has:Is cffi able to infer that the underlying type of
enum color
isunsigned short
? If not, is the use ofint...
required or sufficient?Beta Was this translation helpful? Give feedback.
All reactions