Click here to Skip to main content
15,887,350 members
Articles / Programming Languages / C++

Getting around the need for a vararg #define just to automatically use __FILE__ and __LINE__ in a TRACE macro

Rate me:
Please Sign up or sign in to vote.
4.77/5 (28 votes)
9 Jan 20031 min read 113.1K   802   39  
Ever wrote #define TRACE, #define TRACE1, #define TRACE2, etc., just so you could use the __FILE__ macro and printf style formatting in a macro at the same time?

Views

Daily Counts

Downloads

Weekly Counts


Written By
Web Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions