-
-
18 Sep 2013 08:28:25 UTC
- Distribution: ExtUtils-XSpp
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (11)
- Testers (7717 / 59 / 1)
- Kwalitee
Bus factor: 1- 82.78% Coverage
- License: perl_5
- Perl: v5.6.1
- Activity
24 month- Tools
- Download (181.08KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Digest::MD5
- ExtUtils::ParseXS
- ExtUtils::Typemaps
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
ExtUtils::XSpp::Node::EnumValue - Node representing an enum element
DESCRIPTION
An ExtUtils::XSpp::Node subclass representing an
enum
declaration. As an exampleenum Bool { FALSE = 0, TRUE };
Will create two
ExtUtils::XSpp::Node::EnumValue
objects, the first withname
FALSE
andvalue
0
, the second withname
TRUE
and no value.Enumerations do not affect the generated code.
METHODS
new
my $e = ExtUtils::XSpp::Node::EnumValue->new( name => 'FALSE', value => '0x1 | 0x4', );
Creates a new
ExtUtils::XSpp::Node::EnumValue
.value
is optional.ACCESSORS
name
Returns the name of the enumeration element.
value
Returns the initializer of the enumeration element, or
undef
.Module Install Instructions
To install ExtUtils::XSpp, copy and paste the appropriate command in to your terminal.
cpanm ExtUtils::XSpp
perl -MCPAN -e shell install ExtUtils::XSpp
For more information on module installation, please visit the detailed CPAN module installation guide.