No , this is not what I need , your suggestion allocate memory (sizeof
(int)), In my project there are more than 200 constants (define) , this will
need 200*4 = 800 bytes.
What I need is while running the compiler all the MAX_LEN will changed to be
the number I defined (pre compiler).
Hans Kesting said:
how I can do the following in C#, (the define line below)
c/c++ : #define MAX_LEN 0x23
for (int i=0;i<MAX_LEN;++)
array = 0xFF;
not *exactly* the same, but you could use
private const int MAX_LEN = 0x23;
(or "public" instead of "private")