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
 Struct/macro problems
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

marqvart
Starting Member

Denmark
1 Posts

Posted - Apr 05 2004 :  03:02:13 AM  Show Profile
I have been unable to get VA X to expand the contents of a macro used inside a struct.
It works fine in VA 6.0.

The following is a minimal code example to demonstrate the "bug":

#define asdf_DATA \ int i;

typedef struct asdf_struct asdf;
struct asdf_struct {
asdf_DATA
};

void main()
{
asdf a;
}

Using VA 6.0, hitting a. in main() brings up the parameter popup showing i, just as I would expect.
Doing the same in VA X, I haven't been able to get the parameter popup to show. Hitting Ctrl-Space only results in the status bar showing "0 Symbols found".

We use the above construct to implement object inheritance in a big C project, and it would of course be very nice to have it working in VA X !!

PS: To get VA 6.0 to work, I have to enable the "Macros defined with ()..." option and reparse the databases.

Best regards and thanks for a great tool!!!
Lars Marqvart
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000