ExtUtils::XSpp::Node::EnumValue - Node representing an enum element
An ExtUtils::XSpp::Node subclass representing an enum declaration. As an example
enum
enum Bool { FALSE = 0, TRUE };
Will create two ExtUtils::XSpp::Node::EnumValue objects, the first with name FALSE and value 0, the second with name TRUE and no value.
ExtUtils::XSpp::Node::EnumValue
name
FALSE
value
0
TRUE
Enumerations do not affect the generated code.
my $e = ExtUtils::XSpp::Node::EnumValue->new( name => 'FALSE', value => '0x1 | 0x4', );
Creates a new ExtUtils::XSpp::Node::EnumValue.
value is optional.
Returns the name of the enumeration element.
Returns the initializer of the enumeration element, or undef.
undef
To install ExtUtils::XSpp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ExtUtils::XSpp
CPAN shell
perl -MCPAN -e shell install ExtUtils::XSpp
For more information on module installation, please visit the detailed CPAN module installation guide.