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
A small team of engineers has created a tackling dummy robot that's comparable to training with human players on the football field.
Several plastics and elastomers have come out recently for different parts of cars, as well as for multi-material medical devices and for onboard base station antenna components.
Work in embedding conductive materials into commercially available yarn could lead to energy textiles that store power for use.
A ball bearing developed for turbofan engines by FAG Aerospace of Germany and MTU Aero Engines could have other uses such as turbines, pumps, and gearbox stages.
Fifty-six-year-old Pasquale Russo has been doing metalwork for more than 30 years in a tiny southern Italy village. Many craftsmen like him brought with them fabrication skills when they came from the Old World to America.
More:Blogs|News
Design News Webinar Series
8/13/2015 11:00 a.m. California / 2:00 p.m. New York
6/25/2015 11:00 a.m. California / 2:00 p.m. New York
6/24/2015 11:00 a.m. California / 2:00 p.m. New York
9/10/2015 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.
Aug 31 - Sep4, Embedded System Design Techniques™ - Writing Portable and Robust Firmware in C
SEMESTERS: 1  |  2  |  3  |  4  |  5  |  6 |  7


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 Course August 25-27:
Sponsored by MICROMO
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