Who controls the definition of NDEBUG? I have the following code snippet:
#if defined NDEBUG DebugTX->print("\rPROD"); #endif
No matter what I do, the code inside the #if defined #endif executes. In Debug build configuration I tried to do the following:
1) Did not Define the NDEBUG - the code inside the #if #endif still rins.
2) Tried to undefine as in the command below:
"/home/sporty/ti/ccsv6/tools/compiler/msp430_15.12.3.LTS/bin/cl430" -vmspx --code_model=large --data_model=large --near_data=none -O2 --opt_for_speed=3 --use_hw_mpy=F5 --include_path="/home/sporty/ti/ccsv6/ccs_base/msp430/include" --include_path="/home/sporty/HydroGuardFW/hw_1_5/miwt_os/include" --include_path="/home/sporty/HydroGuardFW/driverlib_msp430f5335" --include_path="/home/sporty/HydroGuardFW/hw_1_5" --include_path="/home/sporty/ti/ccsv6/tools/compiler/msp430_15.12.3.LTS/include" -g --undefine=NDEBUG --define=__MSP430F5335__ --diag_warning=225 --display_error_number --diag_wrap=off --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU40 --abi=eabi --printf_support=minimal --preproc_with_compile --preproc_dependency="coap_resources/fw.d" --obj_directory="coap_resources" "../coap_resources/fw.cpp"
Is there something really special about the NDEBUG?