Re: C const identifiers and constant expressions

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

 



Michael Winslow <liandril@xxxxxxxxx> writes:

> Is there some way short of resorting to preprocessor macros to tell
> the compiler that an identifier is a compile-time constant, and is
> therefore suitable for use in sizing an array?

You can use an enum value. But there's little point in that; a
preprocessor macro will do just fine and is more idiomatic.

-- 
	Falk

[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