I wonder if it is possible to check if the preprocessor defined variable exists or not using string.
For example,
#define TARGET_ANDROID
if (checkIfDefineExists("TARGET_ANDROID"))
{
cout << "It is defined\n";
}
Then the result should print It is defined
.
As far as I know it is not possible, but I wonder if there's any work around to it.