home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / dreamscape / source / Dreamscape / Headers / std / h / bool < prev    next >
Encoding:
Text File  |  1996-08-30  |  739 b   |  36 lines

  1.  
  2. /* std.h.bool
  3.  *
  4.  * Dreamscape - C++ class library for RISC OS
  5.  * Copyright (c) 1996 Mark Seaborn <mseaborn@argonet.co.uk>
  6.  *
  7.  * This library is free software; you can redistribute it and/or
  8.  * modify it under the terms of the GNU Library General Public
  9.  * License as published by the Free Software Foundation; either
  10.  * version 2 of the License, or (at your option) any later version.
  11.  * See the Dreamscape documentation for more information.
  12.  */
  13.  
  14. #ifndef dreamscape_bool_H
  15. #define dreamscape_bool_H
  16.  
  17. #ifdef __cplusplus
  18.  
  19. typedef int bool;
  20. const bool false = 0, true = 1;
  21.  
  22. #else
  23.  
  24. /* This has been bodged to work with OSLib */
  25.  
  26. #ifndef types_H
  27. #include "OS:types.h"
  28. #endif
  29.  
  30. #define false ((bool) 0)
  31. #define true ((bool) 1)
  32.  
  33. #endif
  34.  
  35. #endif
  36.