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
 Parsing Preprocessor Definitions?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

yao_xuejun
Junior Member

21 Posts

Posted - Apr 25 2006 :  9:18:12 PM  Show Profile  Reply with Quote
I notice that user defined preprocessor definitions can't be recognized by VAX, such as:

PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;CYMT;HAVE_SAHASRA50000;TCAM_INGRESS;"

Code:

#ifdef TCAM_INGRESS
...
#endif

then the 'TCAM_INGRESS' isn't colord by VAX.

And, some predefined such as 'NDEBUG','_CONSOLE' is not colored.

It may be better if user have the choice to do it!

Thanks!

support
Whole Tomato Software

5566 Posts

Posted - Apr 26 2006 :  10:57:41 AM  Show Profile  Reply with Quote
Interesting suggestion. Simple examples might work. Setting PreprocessorDefinitions via anything but the simple assignment would certainly make it difficult to know what's defined at edit time.

Workaround is to #define all possible macros inside a #ifdef block that will never be compiled. VA X will see the definitions and recognize them as macros, but the code won't effect your run time.

#if 0
#define TCAM_INGRESS
...
#endif

If you don't want to touch your source with such an #if, add your #defines to stdafx.h in the Misc subdirectory of the VA X installation directory. Press Rebuild on the Performance node of our options dialog and restart your IDE.

Edited by - support on Apr 26 2006 11:00:52 AM
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