X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=include%2Fcommon.h;h=6ac756a70b1c795530a674f5346a17da14399dff;hb=6d627bac82f84e39beda51981ddf3a6ddabbbe78;hp=1e4c07a1af9340a0ba7b7cc67ff88b6d217f2768;hpb=bdd26d4dde3b3d3180619cc81622081025ca6cb5;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