mirror of
https://github.com/Light-City/CPlusPlusThings.git
synced 2026-02-13 07:25:23 +08:00
update
This commit is contained in:
19
basic_content/assert/ignore_assert.c
Normal file
19
basic_content/assert/ignore_assert.c
Normal file
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* @file ignore_assert.c
|
||||
* @brief 忽略断言
|
||||
* @author 光城
|
||||
* @version v1
|
||||
* @date 2019-07-25
|
||||
*/
|
||||
|
||||
# define NDEBUG
|
||||
|
||||
#include<assert.h>
|
||||
|
||||
|
||||
|
||||
int main(){
|
||||
int x=7;
|
||||
assert(x==5);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user