NAME

Const::Introspect::C::Constant - Class representing a C/C++ constant

VERSION

version 0.01

DESCRIPTION

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.

PROPERTIES

c

The Const::Introspect::C instance.

name

The name of the constant.

raw_value

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.

value

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

The constant type. This will be one of: string, int, long, pointer, float, double or other.

AUTHOR

Graham Ollis <plicease@cpan.org>

COPYRIGHT AND LICENSE

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.