There's already (more than one) QA on how to "detect if I'm compiling with Visual Studio XXXX". However the proposed use of the _MSC_VER_
macro does not fit my needs since I'm using the Clang compiler i.e. the clang front end (instead of C1) with the Visual Studio code generator (backend - C2).
Again, I'm in VS but use another compiler. In this scenario, how would I go about conditionally compiling my code? Is there an alternative _CHECK_C1
macro that would allow me to do:
#if _CHECK_C1
// code for visual studio compiler
#else
// code for clang and gcc
#endif