home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ibmodf.zip / ODFRK.ZIP / ODFPRV.HPP < prev    next >
Text File  |  1995-03-06  |  2KB  |  33 lines

  1. /* NOSHIP */
  2. #ifndef _ODFPRV_
  3.   #define _ODFPRV_
  4. /*******************************************************************************
  5. * FILE NAME: odfprv.hpp                                                        *
  6. *                                                                              *
  7. * DESCRIPTION:                                                                 *
  8. *   Common definitions for the OpenDoc Framework.                              *
  9. *   Declaration of the class(es):                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   Licensed Materials - Property of IBM                                       *
  12. *   (C) Copyright IBM Corporation 1992, 1994                                   *
  13. *   All Rights Reserved                                                        *
  14. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  15. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  16. *                                                                              *
  17. *******************************************************************************/
  18. #define  ODFReleaseObject(object) \
  19.    {                \
  20.       if (object!=kODNULL) {    \
  21.          object->Release();  \
  22.          object = kODNULL;    \
  23.       } \
  24.    }
  25.  
  26. #define  ODFRefCntObject(object) \
  27.    {                \
  28.       if (object!=kODNULL)    \
  29.          object->IncrementRefCount(); \
  30.    }
  31.  
  32. #endif /* _ODFPRV_ */
  33.