assert.h

来自「EVC中利用OpenGL技术的例子」· C头文件 代码 · 共 30 行

H
30
字号
/* assert.h espically created for EV3 project 
 *
 * For evc4 already have these stuff as a pre-require,
 * for evc3 make such a fake assert.h to make affect the lease for the trunk.
 *
 */


#ifndef __ASSERT_H__
#define __ASSERT_H__

#include <windows.h>

#ifdef NDEBUG

#define assert(x) 

#else

#define assert(x)   \
    do {            \
    if(!(x))        \
        {__asm int 3} \
    }while(0)

#endif



#endif //__ASSERT_H__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?