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
 Include File Confuses Parser
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

steve.thresher
New Member

United Kingdom
8 Posts

Posted - Oct 14 2004 :  05:10:33 AM  Show Profile
We are attempting to use Visual Assist X with our own include files. Each include file has a block of text at the top which is in the following format:

#ifdef HYPER

^Title^

%Description:%

Blah blah blah.

%Available Functions:%

~function_name~nnnn_nnnn_filename~ - This function does stuff

#endif

This block of text is completely throwing the parser in that the first structure defined in the header is not recognised. Is there a way to instruct the parser to skip a block in a header file?

support
Whole Tomato Software

5566 Posts

Posted - Oct 14 2004 :  10:06:21 AM  Show Profile
Ouch.

Can you post or send via email a full example?
Go to Top of Page

steve.thresher
New Member

United Kingdom
8 Posts

Posted - Oct 14 2004 :  11:42:41 AM  Show Profile
We are going to get around the problem by enclosing the #ifdef HYPER block in a c style comment. But out of interest, would you expect visual assist x to handle blocks of text in header files?
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Oct 14 2004 :  11:59:31 AM  Show Profile
As you have discovered, VA X assumes #ifdef/#endif surrounds code, not text. It does this for a number of reasons.

There is no clean way to get around the behavior. Adding comment blocks is certainly a great workaround, assuming you have permission to update all of your source files.
Go to Top of Page

steve.thresher
New Member

United Kingdom
8 Posts

Posted - Oct 14 2004 :  4:43:36 PM  Show Profile
I've OK'd it with the boss and have just finished writing a conversion program which has achieved the required result. Thanks for your comments.

Edited by - steve.thresher on Oct 14 2004 4:44:22 PM
Go to Top of Page
  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