Sorry if this is specified somewhere, but I can't find any sort of predefined constant that indicates I'm compiling in the Crossworks compiler IDE. For example, GNU defines "
__GNUC__" , Borland has "__BORLANDC__", etc. This lets you put in #ifdefs and the like that use this value to compile a certain way when the compiler is GCC, Borland, etc.
I know that Crossworks uses GCC, but so do many other IDEs. I want to be able to tell I'm compiling using the Crossworks IDE specifically. Is there a "__CROSSWORKS__" constant I'm unaware of?
Please sign in to leave a comment.