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
Integrated safety systems are paying for themselves in fewer injuries, reduced downtime, easier maintenance, and improved flexibility.
If hardware and software development were judged by the level of symbolic logic manipulation, hardware would prove to be simpler. But the argument doesn't hold.
Freescale's New i.MX 7 Series heterogeneous applications processor family is the first of its kind to specifically target embedded applications.
The office's exterior and interior, including furniture, will be entirely 3D printed.
Manufacturers are speeding design by including their suppliers in the process – and it’s not just automotive and aerospace.
More:Blogs|News
Design News Webinar Series
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
6/11/2015 11:00 a.m. California / 2:00 p.m. New York
8/13/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 3 - 7, Developing, Testing, and Troubleshooting IPv4 and IPv6 Using Wireshark
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 Stratasys
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