The #enum binding can bind named enums by name, or anonymous enums by referencing one of the values. However, it cannot reference anonymous enums which are defined within a struct (named enums in structs work fine).
If the header file is
struct Baz {
enum { FOO = 0 , BAR = 1 } baz;
};
then the binding
{#enum FOO as FooBar {underscoreToCase} #}
fails with
Unknown identifier!
Cannot find a definition for `FOO' in the header file.
The same binding works if the enum is declared at global scope.
The
#enum
binding can bind namedenum
s by name, or anonymousenum
s by referencing one of the values. However, it cannot reference anonymousenum
s which are defined within a struct (namedenum
s in structs work fine).If the header file is
then the binding
fails with
The same binding works if the enum is declared at global scope.