#undef

(thing) by mcc Sun Sep 24 2000 at 18:11:50
#undef is a preprocessor directive. It undoes a #define.

That's it. Let's say that you said #define x y-- to borrow the example from Ubergeek's writeup under #define-- but sometime later in the program, things are different and you don't want it to mean that anymore. Or, more likely, you just want to make sure that some header file didn't #define x as something wierd. So, you say

#undef x
And the preprocessor forgets it ever heard of x.
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.