Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Nested /* */ (Read 2983 times)
Aerouta
Junior Member
**
Offline


Posts: 16
Location: USA
Joined: Feb 16th, 2013
Nested /* */
Feb 1st, 2016 at 2:24am
Print Post  
I am not sure if this is a bug or intentional but nested /*  */  no longer works.  It always grabs the first */ to end the dead code.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Nested /* */
Reply #1 - Feb 1st, 2016 at 8:37pm
Print Post  
Can you give some example please i tried this and it compiled okay

Code
Select All
// /* test */ the setup function runs once when you press reset or power the board

/*

/* this is a test

*/

void setup()
{
}

void loop()
{
}

 

  
Back to top
IP Logged
 
Aerouta
Junior Member
**
Offline


Posts: 16
Location: USA
Joined: Feb 16th, 2013
Re: Nested /* */
Reply #2 - Feb 4th, 2016 at 6:02am
Print Post  
/*
This section is fine

/*
this is the nested code
This section is also fine
*/

This WILL be compiled
I would have expected not Sad
*/
« Last Edit: Feb 4th, 2016 at 6:04am by Aerouta »  
Back to top
 
IP Logged
 
Jo Sto
Ex Member
*


Re: Nested /* */
Reply #3 - Feb 4th, 2016 at 2:49pm
Print Post  
This error is also present in original Arduino IDE, testet with 1.06 and 1.6.7
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint