home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / somnew.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-16  |  2.0 KB  |  46 lines

  1. #ifndef __som_new_h
  2.    #define __som_new_h
  3.  
  4.    /********************************************************************/
  5.    /*  <somnew.h> header file                                          */
  6.    /*                                                                  */
  7.    /*  VisualAge for C++ for Windows, Version 3.5                      */
  8.    /*    Licensed Material - Property of IBM                           */
  9.    /*                                                                  */
  10.    /*  5801-ARR and Other Materials                                    */
  11.    /*                                                                  */
  12.    /*  (c) Copyright IBM Corp 1991, 1996. All rights reserved.         */
  13.    /*                                                                  */
  14.    /********************************************************************/
  15.    #include <stddef.h>
  16.  
  17.    #if __SOM_ENABLED__
  18.    // The SOM versions of the standard favourites
  19.  
  20.    #ifndef __DEBUG_ALLOC__
  21.       void *operator new(SOMClass *cl, size_t size);
  22.       void *operator new(SOMClass *cl, size_t size, void *location);
  23.  
  24.       void *operator new[](SOMClass *cl, size_t size);
  25.       void *operator new[](SOMClass *cl, size_t size, void *location);
  26.  
  27.       void operator delete(SOMObject *location);
  28.  
  29.       void operator delete[](SOMObject *location);
  30.    #else
  31.       #include <stdlib.h>
  32.  
  33.       void *operator new(SOMClass *cl, size_t size, const char *filename, size_t lineno);
  34.       void *operator new(SOMClass *cl, size_t size, const char *filename, size_t lineno, void *location);
  35.  
  36.       void *operator new[](SOMClass *cl, size_t size, const char *filename, size_t lineno);
  37.       void *operator new[](SOMClass *cl, size_t size, const char *filename, size_t lineno, void *location);
  38.  
  39.       void operator delete(SOMObject *location, const char *filename, size_t lineno);
  40.  
  41.       void operator delete[](SOMObject *location, const char *filename, size_t lineno);
  42.    #endif
  43.    #endif
  44.  
  45. #endif
  46.