版本4和5间的区别
于2007-08-12 13:09:11修订的的版本4
大小: 649
编辑: czk
备注:
于2008-02-23 15:37:02修订的的版本5
大小: 649
编辑: localhost
备注: converted to 1.6 markup
删除的内容标记成这样。 加入的内容标记成这样。
行号 2: 行号 2:
[[Navigation(slides)]] <<Navigation(slides)>>

<<Navigation: 执行失败 ['AllContext' object has no attribute 'values'] (see also the log)>>

B.6 Diagnostics: <assert.h>

The assert macro is used to add diagnostics to programs:

  • void assert(int expression)

If expression is zero when

  • assert(expression)

is executed, the assert macro will print on stderr a message, such as

  • Assertion failed: expression, file filename, line nnn

It then calls abort to terminate execution. The source filename and line number come from the preprocessor macros __FILE__ and __LINE__.

If NDEBUG is defined at the time <assert.h> is included, the assert macro is ignored.

TCPL/B.06_Diagnostics:_<assert.h> (2008-02-23 15:37:02由localhost编辑)

ch3n2k.com | Copyright (c) 2004-2020 czk.