some notes about the debug macro
The debug macro is conveninet to in c/cpp program, sometimes, you want to hide these informations in delease version, sometimes you need to use them again when there is bug info. this is an example
#include <iostream> |
The only necessary thing is to add the parameter -DDEBUG_BUILD
when building the program. If the program is compiled by the cmake, just follow this answer, there are multiple ways to set it, such as:
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS}") |