Hi
I just wonder, if its possible to add some pragma's or other syntaxs in the C files, that would generate custom compiler errors or warnings when build?
Just something like this
#ifdef _OLD_HW <COMPILE WARN>: "Building for old Hardware" #endif
Then when its compiled, the message "Building for old Hardware" is shown in the compiler output windows. This could be very usefull in automatic build environment etc.
Thomas
http://www.keil.com/support/man/docs/c51/c51_pp_message.htm
#message <message>
Should do what you want. Very handy.
Stephen
that would generate custom compiler errors
#error
should do that. Keep in mind that it creates an actual compiler error, though, and the compilation will fail if the compiler actually processes this command.
...and there's #warning. The whole list:
http://www.keil.com/support/man/docs/c51/c51_pp_directives.htm