Skip to main content
added 10 characters in body
Source Link
Yacoby
  • 55.6k
  • 16
  • 119
  • 121

Put this at the top of your header files after the inclusions of cassert (or a include that includes cassert)

#undef assert #define assert(x) ((void)0) 

Which redefines the assert marco so that it expands to nothing.

Put this at the top of your header files after the inclusions of cassert (or a include that includes cassert)

#undef assert #define assert(x) 

Which redefines the assert marco so that it expands to nothing.

Put this at the top of your header files after the inclusions of cassert (or a include that includes cassert)

#undef assert #define assert(x) ((void)0) 

Which redefines the assert marco so that it expands to nothing.

added 3 characters in body
Source Link
Yacoby
  • 55.6k
  • 16
  • 119
  • 121

Put this at the top of your header files after the inclusions of cassert (or a include that includes cassert)

#undef assert #define assert(x) 

Which redefines the assert marco so that it expands to nothing.

Put this at the top of your header files after the inclusions of cassert (or a include that includes cassert)

#undef assert #define assert 

Which redefines the assert marco so that it expands to nothing.

Put this at the top of your header files after the inclusions of cassert (or a include that includes cassert)

#undef assert #define assert(x) 

Which redefines the assert marco so that it expands to nothing.

Source Link
Yacoby
  • 55.6k
  • 16
  • 119
  • 121

Put this at the top of your header files after the inclusions of cassert (or a include that includes cassert)

#undef assert #define assert 

Which redefines the assert marco so that it expands to nothing.