use definitions in loop (c coding)

i have definitons like

#define COLUMN1  1
#define COLUMN2  2
#define COLUMN3  a
#define COLUMN4  b

I want to use them in a loop

for (int var = 0; var < 3; ++var) {
    if(COLUMNvar) .... ; // var

Any suggestion?

Source: c#

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.