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
 Feature Requests
 Conditional for VAX's parser
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

KirillMueller
Ketchup Master

72 Posts

Posted - Feb 16 2007 :  4:57:33 PM  Show Profile  Reply with Quote
Have you considered defining a special conditional variable like __VISUAL_ASSIST_X__ in your parser? With such a conditional, one could write code like


#ifndef __VISUAL_ASSIST_X__
some_code_that_confuses_vax;
#endif


and get away with it without, well, confusing VAX Sure your parser does a great job, but it would be nice to have such an option just in case. If your parser ignores #ifdef/#ifndef directives completely, a special comment like


// VISUAL_ASSIST_PARSER_OFF
some_code_that_confuses_vax;
// VISUAL_ASSIST_PARSER_ON


would do as well.

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Feb 19 2007 :  1:58:06 PM  Show Profile  Reply with Quote
Are you running into many cases that confuse our parser? Normally we try to fix these.

You can achieve this effect by being clever with VA's stdafx.h file. A pair of #define's that VA is told resolve to "/*" and "*/" work quite well to hide problem code from it. However you need to be a little careful doing this, incase you get unexpected side effects.

zen is the art of being at one with the two'ness
Go to Top of Page

KirillMueller
Ketchup Master

72 Posts

Posted - Feb 22 2007 :  09:04:07 AM  Show Profile  Reply with Quote
Sorry, feline, no offense intended However, I have encountered already two kinds of problems that led to significant reduction of usability. The first got fixed quite quickly, the second is our current issue with the huge macros. I was asking just in case, because it's handy to have a quick solution for myself if a recent update doesn't work with my code but succeeds for virtually everybody else. I'll try your suggestion.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Feb 22 2007 :  12:47:49 PM  Show Profile  Reply with Quote
The problem with macro's taking more than 10 parameters should be fixed in the next build, the limit on the number of parameters has been increased to 20, hopefully enough

For a specific problem with friend classes I recommended the work around:

in the live code add:

#define FRIEND friend

and in VA's stdafx.h file add:

#define FRIEND //

which worked as expected when I tested it. I am not sure if I have actually tested two macro's for start and end comments, but I have the vague feeling I have, and it worked.

zen is the art of being at one with the two'ness
Go to Top of Page

pbrown
Senior Member

USA
44 Posts

Posted - Sep 25 2008 :  1:47:06 PM  Show Profile  Reply with Quote
This sort of feature would be useful for solving the problem I reported at:

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=8208
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