STM32 bool

STM32中基于库V3.5的头文件中,去掉了对bool类型变量的定义,而将它放在了文件stdbool.h中(d:\Keil_v5\ARM\ARMCC\include\stdbool.h)

 

stdbool文件内容如下:

/* stdbool.h: ISO/IEC 9899:1999 (C99), section 7.16 */

/* Copyright (C) ARM Ltd., 2002
* All rights reserved
* RCS $Revision: 177844 $
* Checkin $Date: 2012-11-21 11:51:12 +0000 (Wed, 21 Nov 2012) $
* Revising $Author: drodgman $
*/

#ifndef __bool_true_false_are_defined
#define __bool_true_false_are_defined 1
#define __ARMCLIB_VERSION 5060001

#ifndef __cplusplus /* In C++, 'bool', 'true' and 'false' and keywords */
#define bool _Bool
#define true 1
#define false 0
#else
#ifdef __GNUC__
/* GNU C++ supports direct inclusion of stdbool.h to provide C99
compatibility by defining _Bool */
#define _Bool bool
#endif
#endif

#endif /* __bool_true_false_are_defined */

原文链接: https://www.cnblogs.com/watson8544/p/5624411.html

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍

    STM32 bool

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/236020

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年2月13日 下午4:53
下一篇 2023年2月13日 下午4:53

相关推荐