Заголовочный файл стандартной библиотеки <assert.h>
Этот заголовочный файл является частью библиотеки обработки ошибок.
Макросы |
|
прерывает выполнение программы, если указанное пользователем условие не 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
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/c/header/assert