NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
stdbool.h
浏览该文件的文档.
1
8/* stdbool.h header */
9/* Copyright 2003-2010 IAR Systems AB. */
10
11/* NOTE: IAR Extensions must be enabled in order to use the bool type! */
12
13#ifndef _STDBOOL
14#define _STDBOOL
15
16#ifndef _SYSTEM_BUILD
17#pragma warning(disable : 4068)
18#pragma system_include
19#endif
20
21#ifndef __cplusplus
22
23/* Even in pure C, we still need a standard boolean typedef */
24#ifndef bool
25typedef unsigned char bool;
26#endif
27// #define true 1
28// #define false 0
29#ifndef true
30#define true (1)
31#endif
32#ifndef false
33#define false (0)
34#endif
35
36// typedef int _Bool;
37// #define bool _Bool
38//
39// #define true 1
40// #define false 0
41
42#endif /* !__cplusplus */
43
44#define __bool_true_false_are_defined 1
45
46#endif /* !_STDBOOL */
47
48/*
49 * Copyright (c) 1992-2009 by P.J. Plauger. ALL RIGHTS RESERVED.
50 * Consult your license regarding permissions and restrictions.
51V5.04:0576 */
unsigned char bool
Definition: stdbool.h:25