Go Down

Topic: How to add customized compiling message under Arduino IDE (Read 543 times) previous topic - next topic

Hi All,
I want to add some customized output information in Arduino IDE when compiling the code written by me.
I tried #pragma message("hello"). It dispalyed nothing.
Can anybody know it?

Thanks,

Steve

Coding Badly


Coding Badly

#2
Jan 03, 2013, 05:06 am Last Edit: Jan 03, 2013, 06:15 am by Coding Badly Reason: 1

Another possibility (requires the condition to reduce to a compile-time constant)...

Code: [Select]
static void OutputsErrorIfCalled( void ) __attribute__ (( error("Unexpected condition encountered.") ));

void loop( void )
{
 if ( true )
 {
   OutputsErrorIfCalled();
 }
}


Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy