|
-
April 6th, 1999, 01:25 PM
#1
C++ Macros w/Variable Arguments
I would like to create a macro (#define xxx(x,x) etc.) that will accept a varable number of arguments. I then want to send the variable number of arguments to a printf/FormatMessage style code. Can I do this in a macro? It's use would be:
#define SENDLOG(x,...) SendLog(x, __LINE__, __FILE__, ...)
Doesn't work. Anyone have any tricks?
Shawn Wildermuth
NetSuite Development Corporation
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|