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 Intellisense error on legal? statement (Read 1309 times)
hevneck
Newbies
*
Offline


Posts: 1
Joined: Nov 2nd, 2015
Intellisense error on legal? statement
Jan 7th, 2016 at 10:41am
Print Post  
Hello there!,

I'm getting an Intellisense error/warning on the code below. The compiler does not seem to have trouble with it and the code runs OK....

Code (C++):
uint8_t element_id = LCDML.getFunction();
if (element_id != _LCDML_NO_FUNC && (sizeof(g_LCDML_DISP_lang_table) - 1) >= element_id) {
   strcpy_P(buf, (char*)pgm_read_word(&(g_LCDML_DISP_lang_table[element_id])));
}


The error is: "Error: expected an expression" on the red marked closing parenthesis.
"g_LCDML_DISP_lang_table" is a macro.

I'm using VS2013 Upd4 / Arduino 1.5 / and i think the latest version of VisualMicro.


Any suggestions are very welcome  Wink

Regards,

Hans
« Last Edit: Jan 7th, 2016 at 11:07am by hevneck »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint