assert.h

来自「sqlite源码wince移植版」· C头文件 代码 · 共 33 行

H
33
字号
#ifndef SQLITE_WCE_ASSERT_H_20030607_INCLUDED
#define SQLITE_WCE_ASSERT_H_20030607_INCLUDED

/*
 * This header is for Windows CE versions prior than 4.0 (.NET).
 * They don't have an 'assert.h' header, so we define one here.
 *
 * If we see that a higher version is used, we try to include the
 * standard header.
 *
 */


#if !defined(_WIN32_WCE) || _WIN32_WCE >= 400

#  include <../include/assert.h>

#else

#  ifndef NDEBUG
#    define assert(x) sqlitewce_assert(!!(x),#x,__FILE__,__LINE__)
#  else
#    define assert(x)
#  endif

void sqlitewce_assert( int x, char * test, char * file, int line );

#endif



#endif	// SQLITE_WCE_ASSERT_H_20030607_INCLUDED

⌨️ 快捷键说明

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