User forums > General (but related to Code::Blocks)

debug macro

(1/1)

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

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.

Navigation

[0] Message Index

Go to full version