Sign in to follow this  

preprocessor question

Recommended Posts

[quote name='nuclear123' timestamp='1317446836' post='4867876']
is there anyways to have my compiler or preprocessor do the following with my code.

if (1)
everywhere there is a hardcoded C string add a .txt at the end?
else continue compilation

Not that I know, but you did not mention the compiler.
I would suggest: if the change is definitive, to make it with external search/replace tools. Else, make it dynamically in the code, where/when it is needed.

Anyway, as many people could tell you:
- it's bad to hardcode a lot of things :)
- what are you trying to achieve ? give a small example

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this