Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Inline way to tell vassist to ignore blocks?

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
stephenk Posted - Sep 28 2015 : 11:02:49 AM

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.
3   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Sep 29 2015 : 10:39:46 AM
I mentioned both idea in the case.
stephenk Posted - Sep 29 2015 : 04:13:24 AM
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.
accord Posted - Sep 28 2015 : 11:00:06 PM
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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000