HOME  |  NEWS  |  BLOGS  |  MESSAGES  |  FEATURES  |  VIDEOS  |  WEBINARS  |  INDUSTRIES  |  FOCUS ON FUNDAMENTALS
  |  REGISTER  |  LOGIN  |  HELP
Comment
Tocard
User Rank
Iron
Re: Nov 14 - Day 3: Writing Code That Is Reusable Through Flexibility
Tocard   11/14/2012 2:56:50 PM
NO RATINGS
@MarkO For a quick fix as you described, I probably would have done the same thing.  However, it sounds like a Band-Aid, as opposed to a "robust" solution long-term.  Not trying to argue; just trying to understand this particular bit of the C language.  But it sounds like, if time weren't an issue, that rewriting the #defines to make them "correct" for the high and low used products would be better -- if time permitted.

But I think Gary had a good point.  I am a big proponent of nested #includes myself, too.  This could be a really good reason for #undef.



Partner Zone
Latest Analysis
For decades there have been rumors that Microsoft essentially copied DRI's CP/M operating system and sold it to IBM as MS-DOS. In just a few days, all will be revealed.
A San Francisco startup called Otto came out of stealth mode recently and released a dramatic video demonstrating its successful test of a technology for self-driving trucks.
Researchers have found a way to use graphene to cheaply and easily turn dirty water into drinking water.
A new 1-GHz vector signal transceiver promises to offer expanded test capabilities for engineers involved in applications ranging from automotive and aerospace to semiconductors and defense.
Researchers at the Masdar Institute of Science and Technology have devised a new method for designing strong, light cellular structures of re-architected metals and plastics with optimized properties.
More:Blogs|News
Quick Poll
The Continuing Education Center offers engineers an entirely new way to get the education they need to formulate next-generation solutions.
SEMESTERS: 1  |  2  |  3  |  4  |  5  |  6 |  7 | 8 | 9 | 10


Focus on Fundamentals consists of 45-minute on-line classes that cover a host of technologies. You learn without leaving the comfort of your desk. All classes are taught by subject-matter experts and all are archived. So if you can't attend live, attend at your convenience.
Learn More   |   Login   |   Archived Classes
Twitter Feed
Design News Twitter Feed
Like Us on Facebook

Technology Marketplace

Copyright © 2016 UBM Canon, A UBM company, All rights reserved. Privacy Policy | Terms of Service