update dir

This commit is contained in:
light-city
2019-07-26 15:13:47 +08:00
parent 5818287aa3
commit bf8b7ef7ff
15 changed files with 246 additions and 3 deletions

View File

@@ -1,5 +1,13 @@
# assert那些事
## 关于作者:
个人公众号:
![](../img/wechat.jpg)
## 1.第一个断言案例
断言,**是宏,而非函数**。assert 宏的原型定义在 <assert.h>C<cassert>C++)中,其作用是如果它的条件返回错误,则终止程序执行。可以通过定义 NDEBUG 来关闭 assert但是需要在源代码的开头include <assert.h> 之前。