Where can I find more information about the D_GLIBCXX_DEBUG and DNDEBUG flags?

I am trying to understand the D_GLIBCXX_DEBUG and DNDEBUG flags.

But I can not find information about them.

Can anyone explain what they are doing? and where can I learn more about them?

+7
source share
1 answer

Both use - D , which defines the macro specified after D

When NDEBUG defined, assert does not check its argument.

When _GLIBCXX_DEBUG defined, it activates debug mode in libstdc++ (causing libstdc++ to perform checks on various operations).

+5
source

All Articles