storageclassof()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

Do you know if there is a way to know the storage class of a variable at
compile time ?

I have a need to declare a variable in a macro that should  match the
storage class of another variable, something similar to typeof() but for
storage class.

I streamline here the thing I'd like to do.

#define newvar_like(O,N) storageclassof(O) typeof(O) N

And invoke it like this

...
static int A;
newvar_like(A,B);

Do you know if we can dream to get it one day, even with an 'extension'
option....

Thanx in advance
Cheers,
Phi



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux