Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1559 doesn't like me #defining "and"/"or"

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
ShiningMasamune Posted - Aug 18 2007 : 10:54:30 PM
I'm using C++ with Visual Assist build 1559, and I've noticed a coloring bug. In the interest of more readable code, I like to use the defines "#define and &&" and "#define or ||" when I program. However, when used in an If statement, it seems to mess up VA's coloring. For example:

if(x > y and z > 5) z = 0;

x and z are colored gray, as they should be. However, VA colors y blue. This seems to happen whenever a variable is used directly before the "and"/"or" symbol in an If statement. Please fix this in a future version.
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Aug 20 2007 : 07:22:21 AM
I am seeing the same effect here. Thank you for the clear description.

case=8294

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000