#define, #undef usage

if i do something like:
1
2
3
#define a 1
#define b 2
#define c 3 


do i have to do an
 
#undef 

for them at the end of the file? or will defining a constant like this only hold for the .cc file you are working in or ?? is this bad practice like the evil global variable??
It is my understanding that #undef is used if you want to give another definition for an existing macro

http://www.cplusplus.com/doc/tutorial/preprocessor/
Last edited on
Topic archived. No new replies allowed.