標準ライブラリヘッダー <assert.h>
From cppreference.com
このヘッダーは、エラー処理ライブラリの一部です。
マクロ | |
| ユーザー指定の条件が true でない場合にプログラムを異常終了させる。リリースビルドでは無効化されることがある (関数マクロ) | |
[編集] 概要
#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