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
 #define resolution error in build 1438
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gunvulture
Junior Member

11 Posts

Posted - Dec 22 2005 :  2:16:28 PM  Show Profile  Reply with Quote
This is not new to 1438.

I have stuff like:
#define g_Time Time::GetSingletonRef(0)

and VAX isn't parsing the type correctly. This is under VS 2k5. If I type
"g_Time." in code, Nothing shows up. "g_Time.GetSomething(" displays "#define g_Time Time::GetSingletonRef(0)..." in a tooltip, whether or not GetSomething() is a valid function in class Time.

I have the the "evaluate all macros used in definitions" option enabled.

support
Whole Tomato Software

5566 Posts

Posted - Dec 22 2005 :  10:29:22 PM  Show Profile  Reply with Quote
You won't get what you want. VA X doesn't evaluate as you reference symbols, only when you define them. Since you aren't using g_Time in a definition, VA X won't look at what VA X is when you reference it.

You get a tooltip explaining what g_Time is when you use it. VA X isn't checking that you use it correctly. (We omit the lengthy debate over the merit of #define, and why C# doesn't have it, but your example is a plug for proponents of C#.)

Also... We recommend you disable "evaluate all macros..." and rebuild your symbol database. The option is useful only in rare cases (and your not using g_Time in a definition anyhow.)
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