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
 C++: enums with macros
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Marco123
New Member

9 Posts

Posted - Aug 22 2013 :  03:24:31 AM  Show Profile  Reply with Quote
Hello,

I'm using this enum "expansion" http://www.codeproject.com/Articles/32000/Improving-C-Enums-Adding-Serialization-Inheritance.

With this expansion the plugin isn't working correctly (for example "go to" and re-naming aren't possbile).

Is there a way to use the expansion with your plugin?
Thank a lot.

With kind Regards
Marco

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 22 2013 :  4:00:55 PM  Show Profile  Reply with Quote
I examined the source code at the link and it's quite a complex solution with heavy use of #ifdefs, #undefs, etc. which VA don't parse completely, partly due to performance considerations. The compiler has plenty of time to resolve virtually anything, but VA has to be reasonably fast even in extremely large solutions.

Do you also have problems in other, unrelated source lines as well, where you don't use the enums? In other word, are you able to rename non-enum symbols? I'm trying to asses the scope of the problem, because this problem should not affect other source lines.
Go to Top of Page

Marco123
New Member

9 Posts

Posted - Aug 23 2013 :  12:47:28 AM  Show Profile  Reply with Quote
Thank a lot for your fast reply.

On other source lines I have no problems. But I'm using these defines very often and it's disappointing to rename these enumes.

The conclusion is that these enums won't work with your plugin?
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 26 2013 :  3:48:13 PM  Show Profile  Reply with Quote
I'm afraid they won't.
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