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 oddity (Read 2834 times)
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Intellisense oddity
Apr 4th, 2015 at 2:59pm
Print Post  
Posted on this before, but thought it was my fault - now the ball goes to the other court!
Here is the gory details - essential snippets from the code:

Code (C++)
Select All
#define IOCONCFG 0b01100100  // Here is the pattern

// Two calls to same function:
PortWrite(ButtonPort, IOCON, IOCONCFG);  //This code makes Intellisense complain: "Error: expected a ')' "
PortWrite(ButtonPort, GPPUA, 0xFF);   // no complaints on this code

// Function
void PortWrite(uint8_t address, uint8_t reg, uint8_t data) {
   x
   x
} 

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense oddity
Reply #1 - Apr 4th, 2015 at 3:06pm
Print Post  
Any reason why the two calls are outside of a function?
  
Back to top
IP Logged
 
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Re: Intellisense oddity
Reply #2 - Apr 4th, 2015 at 3:14pm
Print Post  
The function is a wrapper to i2c library calls - I'm going thru various setups.  As it happens, that binary pattern - use to document the bit settings, converts to hex 64.  If I put 0x64 in the function call, Intellisense is happy.  It sorta appears Intellisense is having a prob with the 0xbxxxxxxx radix-syntax.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense oddity
Reply #3 - Apr 4th, 2015 at 5:34pm
Print Post  
Oh I see thanks. That's Visual Studio Win32 C++ compared to Gcc. We piggy back the VS C++ for intellisense
« Last Edit: Apr 4th, 2015 at 5:35pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint