Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Macro parser
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

GoodvinJ
New Member

2 Posts

Posted - Feb 16 2012 :  8:46:50 PM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
19078 Posts

Posted - Feb 17 2012 :  5:58:44 PM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page

GoodvinJ
New Member

2 Posts

Posted - Feb 21 2012 :  04:01:00 AM  Show Profile  Reply with Quote
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".

Edited by - GoodvinJ on Feb 21 2012 04:27:15 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19078 Posts

Posted - Feb 21 2012 :  11:34:08 AM  Show Profile  Reply with Quote
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?

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000