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
 Easy way to set preprocessor definitions?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

kernelpanic99
New Member

2 Posts

Posted - Sep 08 2011 :  05:25:30 AM  Show Profile  Reply with Quote
Hi,
I'm new to Visual Assist and I'm trying to find a way to set the values of preprocessor definitions easily.

The project I'm working on has a custom build process, so a lot of the preprocessor definitions that we use (to support multiple platforms, toggle features on and off, etc) are set on the compiler command line by our build tool instead of in #defines. Obviously Visual Assist won't be able to determine the values of these definitions, which is fine, but I was wondering if there's a dialog somewhere where I can just type in known values for them.

I know about Visual Assist's Stdafx.h, but I think you have to rebuild the caches whenever that's changed, so I thought I'd ask if there was a better way just to toggle some definitions between 0 and 1.

Thanks,
Henry

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Sep 08 2011 :  08:49:07 AM  Show Profile  Reply with Quote
No, unfortunately, I don't know about anything like this. But you can automate the rebuild process by deleting the database. (by deleting the directories from [VA_DIR]\\Data) You will need to restart VS, though. More about the location of the database:

http://docs.wholetomato.com?W332

Edited by - accord on Sep 08 2011 08:50:08 AM
Go to Top of Page

kernelpanic99
New Member

2 Posts

Posted - Sep 08 2011 :  08:54:50 AM  Show Profile  Reply with Quote
OK, no problem. Thanks anyway :)
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