I can see
#ifdef <token>
code;
#endif
to be included, but I can’t find it defined in any of the headers it includes. Is there any other mechanism with which the token could be defined?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, of course, preprocessor directives can be set with the compiler. For example, gcc lets you add directives in the command line, you can specify directives in the project settings in Visual Studio. Also think about
__cplusplus, or_LINE_of_FILE_. Those aren’t defined anywhere, yet they exist. Also_DEBUGorUNICODEwhich are set up by the MSVS environment.