home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- 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
- From: silbar@mpx2.lampf.lanl.gov (Dick Silbar)
- Subject: What does -DDEBUG actually do?
- Message-ID: <10NOV199211495062@mpx2.lampf.lanl.gov>
- News-Software: VAX/VMS VNEWS 1.41
- Sender: news@newshost.lanl.gov
- Organization: LAMPF Data Analysis Center, Los Alamos, New Mexico
- Date: Tue, 10 Nov 1992 18:49:00 GMT
- Lines: 9
-
- I suspect this is very naive, but I looked all through the on-line manuals and
- found no answer to the subject question. The symbol table seems to be made
- by the -g option to cc. So what does -DDEBUG buy me?
-
- One answer MIGHT be (I am guessing) the ability to denote some lines in my
- C code (with 'DEBUG'?), such as my favorite printf statements, so that they
- are compiled when -DDEBUG is declared, but not when it is not.
-
- Dick Silbar (NeXTMail:silbar@whistler.lanl.gov)
-