I have an Objective-C/C++ application which uses functionality that is provided by a C++ library.
One of the C++ classes includes an enum like this:
YES and NO are predefined constants in Objective-C, declared in the objc.h header.
You should be able to prevent the preprocessor to expand the "YES" and "NO" macro's. This can be done by locally
But technically, if you're using a language keyword as an identifier, you can expect trouble. You won't write a class containing a member called
MAX_PATH, would you?