This issue was imported from the GSFC issue tracking system
Imported from: [GSFCCFS-1787] CF Assertions should not be compiled in when using "release" buildtype
Originally submitted by: Hickey, Joseph P. (GSFC-582.0)[VANTAGE SYSTEMS INC] on Tue Nov 16 18:42:37 2021
Original Description:
See also #23 regarding the use of "unlikely" in this macro.
When building with BUILDTYPE=release, the NDEBUG macro will be set. Typically this turns off assertions in the code, but in CF this is not the case, it redefines CF_Assert to a local handler instead.
Typically code will disable/compile-out assertion statements when in release mode, as they should never be triggered, so they just waste cycles.
This issue was imported from the GSFC issue tracking system
Imported from: [GSFCCFS-1787] CF Assertions should not be compiled in when using "release" buildtype
Originally submitted by: Hickey, Joseph P. (GSFC-582.0)[VANTAGE SYSTEMS INC] on Tue Nov 16 18:42:37 2021
Original Description:
See also #23 regarding the use of "unlikely" in this macro.
When building with BUILDTYPE=release, the NDEBUG macro will be set. Typically this turns off assertions in the code, but in CF this is not the case, it redefines CF_Assert to a local handler instead.
Typically code will disable/compile-out assertion statements when in release mode, as they should never be triggered, so they just waste cycles.