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
.
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
.
The constant type.
This will be one of: string
,
int
,
long
,
pointer
,
float
,
double
or other
.
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.