Const::Introspect::C::Constant - Class representing a C/C++ constant
version 0.01
This class represents a single C/C++ constant. See Const::Introspect::C for the interface for getting a list of these constants from a header file.
The Const::Introspect::C instance.
The name of the constant.
The value of the constant as seen in the header file. This may be an expression and thus unusable as a constant value, but it may also be useful for diagnostics.
If the raw value is unknown this will be undef.
undef
The value of the constant. The representation may depend on the type, or for other type (typically for code macros), there is no sensible value, and this will be undef.
type
other
The constant type. This will be one of: string, int, long, pointer, float, double or other.
string
int
long
pointer
float
double
Graham Ollis <plicease@cpan.org>
This software is copyright (c) 2020 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Const::Introspect::C, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Const::Introspect::C
CPAN shell
perl -MCPAN -e shell install Const::Introspect::C
For more information on module installation, please visit the detailed CPAN module installation guide.