- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Using some of above #ifdef macros help cooperate with other team members that do not familiar with branching in version control system.
Yes, that would be some kind of inline-branching version control. XD
Admin
Usually -DLINT pulls in everything.
Admin
#define 0 1 Now what will you do?
Admin
1 #ifdef TOO_MUCH_LOGGING
Maybe you should try less fibre?
Admin
Admin
Yes ... a single insect can turn champagne into sewage.
Admin
Come on.. we're missing the simple solution.
You need to comment out the #ifdefs with an #ifdef #endif pair eg:
#ifdef REAL_DELETE delete(stuff); #endif
becomes
#ifdef IFDEFS #ifdef REAL_DELETE delete(stuff); #endif #endif
Now you can compile out all those pesky #ifdefs by defining IFDEFS
Admin
#ifdef or_don't_its_cool_you_know_whatever
captcha: dolor--madre dia, the pain!
Admin
Define all of them... And marvel at the totally different product that emerges that your developers have been working on and selling on the side.
Admin
LOL