R
Ricardo Gibert
How can I "force" a macro to accept integer constants or expressions whose value is determined during compilation? For example, if
we have:
#define TEST(X) blah blah with X
I want the macro to be used as
x += TEST(5);
y += TEST(3*7);
and not as
z += TEST(i);
z += TEST(i*3);
when I would prefer a compile time error.
Is this possible in C?
we have:
#define TEST(X) blah blah with X
I want the macro to be used as
x += TEST(5);
y += TEST(3*7);
and not as
z += TEST(i);
z += TEST(i*3);
when I would prefer a compile time error.
Is this possible in C?