From 3da2b28947bb0db3cda5a090ca6d641975a09846 Mon Sep 17 00:00:00 2001 From: FreeBirdLjj Date: Sun, 5 Oct 2014 00:38:22 +0800 Subject: [PATCH] Add comment for bool. --- include/common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/common.h b/include/common.h index 1e4c07a..6ac756a 100644 --- a/include/common.h +++ b/include/common.h @@ -21,6 +21,8 @@ * along with this program. If not, see . * * + * type: bool variable stores only true or false. + * * macro: MAX returns the higher one of two input variables * macro: MIN returns the lower one of two input variables * @@ -33,7 +35,7 @@ #if !defined( bool ) typedef enum { false = 0, - true + true = 1 } bool; #endif // !defined( bool ) #endif // __STDC_VERSION__ >= 199901L -- 2.20.1