gcc enumeration print support
Ian Lance Taylor
iant@google.com
Mon Nov 29 23:25:00 GMT 2010
jovi zhang <bookjovi@gmail.com> writes:
> Does gcc compiler support enumeration print support? what I means
> is like this:
>
> typedef struct {
> int ttype ;
> intt index ;
> } unit_it_t ;
>
> unit_it_t f_unit;
>
> GCC_PRINT(f_unit);
>
>
> Then compiler will print all filed of f_unit data structure automatic,
> no need to let programmer print f_unit.ttype and f_unit.index one by
> one.
> gdb print is just like this.
>
> GCC_PRINT(f_unit);=>
> f_unit.ttype = 1
> f_unit.index = 2
This question is not appropriate for the mailing list gcc@gcc.gnu.org,
which is for the development of gcc itself. It would be appropriate for
gcc-help@gcc.gnu.org. Please take any followups to gcc-help. Thanks.
The answer to your question is no; gcc does not support any such
feature.
Ian
More information about the Gcc
mailing list