Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 4 months ago.
How to add "messages" during compile ?
I have a large program (growing)
with several
#ifdef Use_This .. #define Use_Another .. #endif
I would like to have something like ..
Pi = 3.0/22.0; #ifdef Use_22_Over_7_for_PI #message "Pi is user defined #else Pi = 3.14; #message "Short pi value"; #endif
Is it possable with MBED Compiler ??
Cheers
Ceri
Dough !!
works, and still allows compilation
posted by ceri clatworthy 22 Apr 2014