home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1996 November / VPR9611B.ISO / vabasic / ntclnt.exe / DISK8 / data.8 / datab / INCLUDE / DEFNEW.HH < prev    next >
Text File  |  1996-07-29  |  1KB  |  34 lines

  1. /*****************************************************************************
  2.  ***   $Source: /rcs/crcs/general/defnew.hh,v $
  3.  ***   Checked int by: $Author: dan $
  4.  ***   $Date: 1994/04/25 20:39:32 $
  5.  ***   $Revision: 1.1 $
  6.  *****************************************************************************
  7.  ***                                       ***
  8.  ***          Copyright (c) 1994, Visual Edge Software Ltd.           ***
  9.  ***                                        ***
  10.  ***   All rights reserved.  This notice is  intended  as  a  precaution   ***
  11.  ***   against    inadvertent publication, and shall not be deemed to con-   ***
  12.  ***   stitute an acknowledgment that publication has  occurred     nor  to   ***
  13.  ***   imply  any  waiver  of confidentiality.    The year included in the   ***
  14.  ***   notice is the year of the creation of the work.               ***
  15.  ***                                        ***
  16.  *****************************************************************************/
  17.  
  18. // NOTE: do not put wrapper #ifndef for this file: it may be included
  19. //    multiple times if something needs to change the definition of
  20. //    new after it has already been defined.
  21.  
  22. // Redefine new for the debugging malloc support.
  23.  
  24. #if defined(MEMDEBUG) && !defined(NOVIPERNEW)
  25.  
  26. #    if defined(_MSC_VER) || defined(__GNUC__)
  27. #        define OP_NEW new(__FILE__, __LINE__)
  28. #        define new OP_NEW
  29. #    else
  30. #        define new new(__FILE__, __LINE__)
  31. #    endif
  32.  
  33. #endif
  34.