Standard library header <assert.h> - cppreference.com (original) (raw)

This header is part of the error handling library.

Macros

[edit] Synopsis

#if STDC_VERSION >= 202311L

define STDC_VERSION_ASSERT_H 202311L

ifdef NDEBUG

define assert(...) ((void)0)

else

define assert(...) /* implementation-defined */

endif

#else

ifdef NDEBUG

define assert(condition) ((void)0)

else

define assert(condition) /* implementation-defined */

endif

#endif