Sin Jeong-hun
2009-08-19 01:00:54 UTC
Hello.
Is it possible to configure the preprocessor so that when it
encounters some undeclared macro constant in the C code then it
replaces it with zero? The situation is complicated but basically we
have some master "configuration file" which is actually a c file that
has all values as macro constants. Each time someone adds a new macro
constant to the master configuration file, we must update all other
branch configuration files accordingly by putting zeros for the
constant, because zero means it's not supported. So, if the
preprocessor replaces undeclared macro constants with zero
automatically, then it would be a lot easier.
Is it possible to configure the preprocessor so that when it
encounters some undeclared macro constant in the C code then it
replaces it with zero? The situation is complicated but basically we
have some master "configuration file" which is actually a c file that
has all values as macro constants. Each time someone adds a new macro
constant to the master configuration file, we must update all other
branch configuration files accordingly by putting zeros for the
constant, because zero means it's not supported. So, if the
preprocessor replaces undeclared macro constants with zero
automatically, then it would be a lot easier.