Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > preprocessor qu...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 25350 of 27671
Post > Topic >>

preprocessor question

by Nathan Moinvaziri <nmoinvaziri@[EMAIL PROTECTED] > Apr 4, 2008 at 01:22 AM

I am wonder if there is a way to use preprocessor definitions to
expose code only if a particular file is included in a project. I am
targeting the msvc.

I am thinking of something like

#if defined(filecabinet.h) // if filecabinet.h is part of the project

....

#endif
 




 4 Posts in Topic:
preprocessor question
Nathan Moinvaziri <nmo  2008-04-04 01:22:24 
Re: preprocessor question
Keith Thompson <kst-u@  2008-04-04 01:58:45 
Re: preprocessor question
"Robbie Hatley"  2008-04-05 20:07:03 
Re: preprocessor question
Keith Thompson <kst-u@  2008-04-05 22:12:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 8:27:01 CDT 2008.