I have an integer variable (for example int var1;
) which shouldn't be "18" in the source code. I mean if any programmer of my project wrote this:
var1 = 18;
The compiler (I use C99) makes it red, and refuses to compile it. I want something like #define
, but reversely (a variable MUST NOT have a special value). Is it possible in C?