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
 Inline way to tell vassist to ignore blocks?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

stephenk
New Member

8 Posts

Posted - Sep 28 2015 :  11:02:49 AM  Show Profile  Reply with Quote

Background: We ship an SDK. The Visual assist "find symbol" dialog is showing lots of internal details which we'd like to hide.

Is there some preprocessor definition we can check to #if out some blocks? (like __INTELLISENSE__). We'd really like things to "just work" for clients and not have to suggest modifying their settings.

Googling and looking at the docs would lead me to think there is no such thing, but here's hoping.

Even better would be some kind of pragma which allows one to locally or globally specify excluded patterns or regexes instead of horrible #ifdefs. e.g.
#pragma VASSIST ignore_glob *_Auto*

Stephen.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Sep 28 2015 :  11:00:06 PM  Show Profile  Reply with Quote
I have opened a feature request for this:

case=92389

For now, on the off chance that it helps, one obvious solution would be to use #if 0, but if that part of the code needs to be compiled on client's machine, it isn't a good idea.
Go to Top of Page

stephenk
New Member

8 Posts

Posted - Sep 29 2015 :  04:13:24 AM  Show Profile  Reply with Quote
Thanks. The code is in headers so #if 0 isn't an option.

Would you mind filing this as two separate requests?

1) a way to switch off blocks via the preprocessor
2) a pragma to ignore certain patterns of symbols

Looking at our use case again, #2 was almost an afterthought while writing the post. However it would probably be neater and easier to use. I can imagine that using the preprocessor, it would be easy to confuse vassists code parser.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Sep 29 2015 :  10:39:46 AM  Show Profile  Reply with Quote
I mentioned both idea in the case.
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