News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

debug macro

Started by jmccay, April 27, 2006, 02:40:19 AM

Previous topic - Next topic

jmccay

  How does linux (& windows) handle the debug macro?

#define DEBUG

or

#define _DEBUG

  Is this a defacto standard for g++?

   Also, is there anything that is define automatically when including debugging information?

jmccay
OS: WinXP, Win98 SE, & sometimes Linux

a little light reading from the wxWidgets 2.6.2 readme: A detailed 2000-page reference manual is supplied in HTML, PDF and Windows Help form: see the docs hierarchy.

thomas

I don't know about a DEBUG "standard", but there is a NDEBUG "standard".

If you define NDEBUG, then the preprocessor evaluates assert() to nothing (assert is simply a macro).
Everything else is home-made stuff and not standard.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."