home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / next / programm / 7129 < prev    next >
Encoding:
Text File  |  1992-11-10  |  999 b   |  21 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!mcsun!Germany.EU.net!ira.uka.de!gmd.de!jvnc.net!darwin.sura.net!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!lanl!mpx2.lampf.lanl.gov!silbar
  3. From: silbar@mpx2.lampf.lanl.gov (Dick Silbar)
  4. Subject: What does -DDEBUG actually do?
  5. Message-ID: <10NOV199211495062@mpx2.lampf.lanl.gov>
  6. News-Software: VAX/VMS VNEWS 1.41    
  7. Sender: news@newshost.lanl.gov
  8. Organization: LAMPF Data Analysis Center, Los Alamos, New Mexico
  9. Date: Tue, 10 Nov 1992 18:49:00 GMT
  10. Lines: 9
  11.  
  12. I suspect this is very naive, but I looked all through the on-line manuals and 
  13. found no answer to the subject question.  The symbol table seems to be made
  14. by the -g option to cc.  So what does -DDEBUG buy me?
  15.  
  16. One answer MIGHT be (I am guessing) the ability to denote some lines in my 
  17. C code (with 'DEBUG'?), such as my favorite printf statements, so that they 
  18. are compiled when -DDEBUG is declared, but not when it is not.
  19.  
  20.    Dick Silbar (NeXTMail:silbar@whistler.lanl.gov)
  21.