HOME  |  NEWS  |  BLOGS  |  MESSAGES  |  FEATURES  |  VIDEOS  |  WEBINARS  |  INDUSTRIES  |  FOCUS ON FUNDAMENTALS
  |  REGISTER  |  LOGIN  |  HELP
Comment
GStringham
User Rank
Iron
Re: Nov 15 - Day 4: Additional Approaches to Support Code Reusability
GStringham   11/15/2012 2:45:57 PM
NO RATINGS
@JCarlson: why not printf (a)?? Printf is a variable-argument function. You can have with one parameter, printf("hello"), and you can have it with four parameters, printf("combo %d, %d, %d", a, b, c), and so on. But CPP macros do not support variable argment lists. So,

#define PRT_DEBUG(a) printf a

makes it so that PRT_DEBUG(("hello")) and PRT_DEBUG(("combo %d, %d, %d", a, b, c)) has only one parameter, a, in both cases.



Partner Zone
Latest Analysis
Bigger than an iPhone 6 Plus, but smaller than an iPad Air 2. What am I? If you answered iPad Mini 3, you are correct.
Here are 10 robots that are designed to work effectively and safely with humans.
The data breaches at Target, Home Depot, and elsewhere have inadvertently highlighted a separate and unexpected problem: bad user interface design.
What if you could recharge your mobile device using the movements you make all day? That’s the promise of Ampy, a new device by a Chicago-based startup of the same name.
Peter Riendeau of Melexis shows how a time-of-flight sensor can be used for gesture recognition in a vehicle.
More:Blogs|News
Design News Webinar Series
10/7/2014 8:00 a.m. California / 11:00 a.m. New York
9/25/2014 11:00 a.m. California / 2:00 p.m. New York
9/10/2014 11:00 a.m. California / 2:00 p.m. New York
7/23/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.
Nov 3 - 7, Engineering Principles behind Advanced User Interface Technologies
SEMESTERS: 1  |  2  |  3  |  4  |  5  |  6


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.
Next Class: 10/30 11:00 AM
Sponsored by Stratasys
Next Class: 10/30 2:00 PM
Sponsored by Gates Corporation
Next Class: 11/11-11/13 2:00 PM
Sponsored by Littelfuse
Learn More   |   Login   |   Archived Classes
Twitter Feed
Design News Twitter Feed
Like Us on Facebook

Sponsored Content

Technology Marketplace

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