Is there any tricky way to use logical xor operator ^^
in macro in C, C++, Objective-C?
I have tried applying ^^
directly in Objective-C, it does not work.
Edited: let me clarify my answer.
What I want is to use xor operator in macro. It does not mean "how to define the xor operator by a macro.
I.e, I want something like
#if defined(x) ^^ TARGET_OS_IOS ^^ __cplusplus