Standard library header <assert.h>
From cppreference.net
Standard Library headers
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
このヘッダは エラー処理 ライブラリの一部です。
マクロ |
|
|
ユーザー指定の条件が
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