home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lclint.zip / lclint-2_3h-os2-bin.zip / test / bool.h < prev    next >
C/C++ Source or Header  |  1997-09-03  |  332b  |  20 lines

  1. #ifndef BOOL_H
  2. #define BOOL_H
  3.  
  4. #ifndef FALSE
  5. #define FALSE 0
  6. #endif
  7.  
  8. #ifndef TRUE
  9. #define TRUE (! FALSE)
  10. #endif
  11. /*@-cppnames@*/
  12. typedef int bool;
  13. /*@=cppnames@*/
  14. # define bool_initMod()
  15. # define bool_unparse(b) ((b) ? "true" : "false" )
  16. # define bool_not(b) ((b) ? FALSE : TRUE)
  17. # define bool_equal(a,b) ((a) ? (b) : !(b))
  18.  
  19. # endif
  20.