home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / hypercar / mactool / thinkcgu.sit / app ƒ / class.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-17  |  732 b   |  37 lines

  1. /*
  2. *   FILE:    class.h
  3. *   AUTHOR:  R.G.
  4. *   CREATED: June 25, 1990
  5. *   
  6. *   header file defines Generic_Class and ensures Think C/C++
  7. *    compatibility
  8. */
  9.  
  10. # ifndef    class_h            /* to avoid header reinclusion in C++ */
  11. # define    class_h
  12.  
  13. # ifdef    THINK_C
  14. # define    virtual            /* for TC/C++ compatibility */
  15. # endif
  16.  
  17. # define    TRUE    1
  18. # define    FALSE    0
  19.  
  20. typedef        int        boolean;
  21.  
  22. /******************************************************************
  23. *   root class for all classes
  24. ******************************************************************/
  25. # ifdef        THINK_C
  26. struct  Generic_Class:indirect
  27. # else
  28. struct    Generic_Class        /* for TC/C++ compatibility */
  29. # endif
  30. {
  31.     virtual    boolean    init(void);
  32.     virtual    boolean    destroy(void);
  33. };
  34.  
  35. # endif
  36.  
  37.