Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Macro parser

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
GoodvinJ Posted - Feb 16 2012 : 8:46:50 PM
Hello.

VAX doesn't process a such macro correctly:

#if (defined(P_EXPAT_WIN64) &&  defined(P_64BIT)                        ) || \    (defined(P_EXPAT_WIN32) && !defined(P_64BIT) && !defined(_WIN32_WCE)) || \    (defined(P_EXPAT_WINCE)                      &&  defined(_WIN32_WCE)) || \    (defined(P_EXPAT_LIBRARY_W64_DEBUG) &&  defined(P_64BIT)) || \    (defined(P_EXPAT_LIBRARY_W32_DEBUG) && !defined(P_64BIT) && !defined(_WIN32_WCE)) || \    (defined(P_EXPAT_LIBRARY_WM5_DEBUG)                      &&  defined(_WIN32_WCE)) || \    (defined(P_EXPAT_LIBRARY_WM6_DEBUG)                      &&  defined(_WIN32_WCE))
  #define P_EXPAT 1
#endif

It highlights only the first line and shows "#define P_EXPAT 1" with gray color.
So all definitions in my project based on P_EXPAT value are not processed by VAX.

Line "#define P_EXPAT 1" is executed correctly by compiler.

I'm using Visual Studio 2008.
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Feb 21 2012 : 11:34:08 AM
Can you post some sample code to show the problem you are having please? I am not sure I understand what is going on here.

How are you triggering goto? If you are right clicking on a symbol and using "Go To Definition" or "Go To Declaration" then you are using IDE commands that have nothing to do with VA. If you use the keyboard shortcut Alt-g instead do you get a different result?
GoodvinJ Posted - Feb 21 2012 : 04:01:00 AM
Anyway it's not an issue with code coloring, it's an issue with evaluation of #if argument.
VA doesn't process a code that depends on P_EXPAT value, so I can't navigate to those declarations/definitions via "go to declaration/definition".
feline Posted - Feb 17 2012 : 5:58:44 PM
Can you try turning Off the IDE option:

IDE tools menu -> Options -> Text Editor -> C/C++ -> Formatting -> Colorize inactive code blocks in a different color

I think this is causing the grey colour you are seeing and describing. If so this is the IDE, and has nothing to do with VA. This code is coloured as expected for me, using VS2008 and VA 1862.

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