X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;ds=sidebyside;f=include%2Fcommon.h;h=6ac756a70b1c795530a674f5346a17da14399dff;hb=3da2b28947bb0db3cda5a090ca6d641975a09846;hp=1e4c07a1af9340a0ba7b7cc67ff88b6d217f2768;hpb=47c6c9f3d514ab95d259a1f48a7f7253939bf46e;p=smdp.git 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