home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / c / 11569 < prev    next >
Encoding:
Text File  |  1992-07-24  |  954 b   |  31 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!iWarp.intel.com|ichips!intelhf!rhurwitz
  3. From: rhurwitz@hfglobe.intel.com (Roger Hurwitz)
  4. Subject: Murphy's Law : Variable Argument Macros
  5. Message-ID: <1992Jul24.175006.9137@intelhf.hf.intel.com>
  6. Followup-To: rhurwitz@mstuux.intel.com
  7. Keywords: variable arguments, macros
  8. Sender: Roger Hurwitz
  9. Organization: Development Tools Operation, Intel Corp., Hillsboro, OR
  10. Date: Fri, 24 Jul 92 17:50:06 GMT
  11. Lines: 18
  12.  
  13.  
  14. Murphy's Law #563:
  15.  
  16.     "The day after you ignore a seemingly irrelevant thread
  17.     on comp.lang.c you will be presented with a problem
  18.     requiring a thorough understanding of that thread."
  19.  
  20.     Can someone please send me the solution summary for
  21.     passing a variable number of arguments through a
  22.     macro "function".  I need to write an error message
  23.     macro that combines __FILE__ and __LINE__ information
  24.     as well as a variable number of user arguments to
  25.     put together using vsprintf.
  26.  
  27. Thanks,
  28.     Roger Hurwitz
  29.  
  30.  
  31.