HOME  |  NEWS  |  BLOGS  |  MESSAGES  |  FEATURES  |  VIDEOS  |  WEBINARS  |  INDUSTRIES  |  FOCUS ON FUNDAMENTALS
  |  REGISTER  |  LOGIN  |  HELP
Comment
GStringham
User Rank
Iron
Re: Nov 14 - Day 3: Writing Code That Is Reusable Through Flexibility
GStringham   11/14/2012 4:29:29 PM
NO RATINGS
The reason I #undef on slide 10 is to make sure they are clear for the subsequent #define. If it was already defined I would get a compiler error. Also by #undef'ing it first, then if I inadvertently forget to #define it to something, it will make sure the check on slide 12 will work properly and not "pass" the test because someone else had #defined it before.



Partner Zone
Latest Analysis
Futurist Raymond Kurzweil discussed biotechnology, solar power, and 3D printing at the Pacific Design & Manufacturing Show in Anaheim this week.
Valentine’s Day seems like a good time to recognize those folks around us who have had a hand in our success.
Makers of industrial PCs are continuing to take advantage of Moore’s law expansion of processing power enabling creative automation and control schemes with multicore processors.
Researchers at Lawrence Livermore National Laboratory have published two physics-based models for the selective laser melting (SLM) metals additive manufacturing process, so engineers can understand how it works at the powder and scales, and develop better parts with less trial and error.
The designer can now analyze temperature distribution in a design, tracking input and output of heat loads, and also turn it into a thermal stress study.
More:Blogs|News
Design News Webinar Series
1/28/2016 11:00 a.m. California / 2:00 p.m. New York
12/8/2015 11:00 a.m. California / 2:00 p.m. New York
2/18/2016 11:00 AM PT | 2:00 PM ET
2/24/2016 11:00 AM PT | 2:00 PM ET
Quick Poll
The Continuing Education Center offers engineers an entirely new way to get the education they need to formulate next-generation solutions.
Jan 11 - 15, Designing ARM Devices Using Segger Tools
SEMESTERS: 1  |  2  |  3  |  4  |  5  |  6 |  7 | 8 | 9


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 © 2016 UBM Canon, A UBM company, All rights reserved. Privacy Policy | Terms of Service