I'm working on embedded system project, and I don't know why I noticed this now, but if I define a variable twice the compiler doesn't give me any warning nor an error, which is very weird because I can accidently use the same name as another macro in the library which can easily send me to hell.
So what is the best practice to avoid, after thinking of it the only way is to test every name using #ifndef condition, but it the code will be very long and hard to read.
#define a 50 //defined in another library
#ifndef a // I check if 'a' already defined
#define a 10 // if not I can use that name
#endif
Think about doing this with hundred of macros, there must a better way which is directly related to the compiler.
