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
In honor of National Engineers Week, here's a list of our favorite science and technology podcasts for learning something new or even just having a good laugh.
Looking to build your own wearable device? Here's a handy guide to all the sensors available to you.
Many of the new adhesives we're featuring in this slideshow are for use in automotive and other transportation applications. The rest of these new products are for a wide variety of applications including aviation, aerospace, electrical motors, electronics, industrial, and semiconductors.
23andMe has earned FDA clearance to market one of its home genetics tests, a move that bodes well for healthcare and the broader technology industry.
Engineers throughout the US are in the midst of celebrating Engineers Week. But the celebration extends beyond the country’s borders, and even beyond the Earth itself; the crew of the International Space Station joined the festivities, too!
More:Blogs|News
Design News Webinar Series
2/25/2015 11:00 a.m. California / 2:00 p.m. New York
12/11/2014 8:00 a.m. California / 11:00 a.m. New York
12/10/2014 8:00 a.m. California / 11:00 a.m. New York
11/19/2014 11:00 a.m. California / 2:00 p.m. New York
Quick Poll
The Continuing Education Center offers engineers an entirely new way to get the education they need to formulate next-generation solutions.
Feb 23 - 27, Baremetal C Programming for Embedded Systems
SEMESTERS: 1  |  2  |  3  |  4  |  5  |  67


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

Sponsored Content

Technology Marketplace

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