C Tutorial/assert.h/assert — различия между версиями
Admin (обсуждение | вклад) м (1 версия: Импорт контента...) |
|
(нет различий)
|
Версия 14:21, 25 мая 2010
assert
Item Value Header file assert.h Declaration void assert(int exp); Function writes error information to stderr and then aborts program execution if the expression exp evaluates to zero.
Define NDEBUG to ignore the assert() macros.
#include <assert.h>
int main(void){
assert(1==2);
}