Namespaces
Variants

Standard library header <assert.h>

From cppreference.net

이 헤더는 오류 처리 라이브러리의 일부입니다.

매크로

사용자가 지정한 조건이 true 가 아닐 경우 프로그램을 중단합니다. 릴리스 빌드에서는 비활성화될 수 있습니다
(함수 매크로)

시놉시스

#if __STDC_VERSION__ >= 202311L
#   define __STDC_VERSION_ASSERT_H__ 202311L
#   ifdef NDEBUG
#       define assert(...) ((void)0)
#   else
#       define assert(...) /* 구현-정의됨 */
#   endif
#else
#   ifdef NDEBUG
#       define assert(condition) ((void)0)
#   else
#       define assert(condition) /* 구현-정의됨 */
#   endif
#endif