Dmitry Dmitry - 4 months ago 32
Objective-C Question

Undefine a macro in Objective-C

How do I undefine a macro in Objective-C?

I have situation where a macro is defined automatically, but I want to undefine it manually. How do I do this?

#ifdef macro_name
...
#endif

Answer
#undef macro_name

is the directive of your dreams.

Comments