We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello,
can I print the macros like __MODEL__? Would it be possible to do this in an batch file in Options / User?
Thanks in advance
I couldn't find the marco in my files either.
How do I know which macros are set?
How do the compiler decide which macros to set?
Gabriele__ said:How do I know which macros are set?
I don't fully understand your question. As I mentioned before, our C166 lists all predefined macros.
"C166 manuals are not available online, but you can see the values in the file C:\Keil_v5\C166\hlp\c166.chm chapter 'Preprocessor - Macros - Predefined Macros'."
Here is a screen capture of that manual page:
Gabriele__ said:How do the compiler decide which macros to set?
The compiler sets all these macros with a specific value or sting.
Thank you.
I'm trying to rephrase my question to make it clearer hopefully:
How do I get the values for the predefined macros from the C166 list that the compiler has set?
Could I readout the specific value or string?