We are working on cross-platform development of Adobe InDesign plugins. On Mac, for Debug build, we define DEBUG macro (without underscore prefix) in Preprocessor Macro of Clang in XCode.
When we define "DEBUG" as the macro, XCode 9.3 clang compiler would not recognize "_DEBUG" used in the code. This was perfectly fine since "_DEBUG" was used in Windows.
However, in XCode 11.5, even though we define "DEBUG" in preprocessor, "_DEBUG" is recognized.
I want to understand as to why has this happened? Also, is there any way in the project setting to avert this?
PS: I know I can do this by adding #ifndef MACINTOSH. But, the client would like to explore a solution without this :-)
When we define "DEBUG" as the macro, XCode 9.3 clang compiler would not recognize "_DEBUG" used in the code. This was perfectly fine since "_DEBUG" was used in Windows.
However, in XCode 11.5, even though we define "DEBUG" in preprocessor, "_DEBUG" is recognized.
I want to understand as to why has this happened? Also, is there any way in the project setting to avert this?
PS: I know I can do this by adding #ifndef MACINTOSH. But, the client would like to explore a solution without this :-)