windows-nt/Source/XPSP1/NT/base/crts/crtw32/heap/delete2.cpp

39 lines
1.3 KiB
C++
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
/***
*delete2.cpp - defines C++ vector delete routine
*
* Copyright (c) 1990-2001, Microsoft Corporation. All rights reserved.
*
*Purpose:
* Defines C++ delete routine.
*
*Revision History:
* 05-07-90 WAJ Initial version.
* 08-30-90 WAJ new now takes unsigned ints.
* 08-08-91 JCR call _halloc/_hfree, not halloc/hfree
* 08-13-91 KRS Change new.hxx to new.h. Fix copyright.
* 08-13-91 JCR ANSI-compatible _set_new_handler names
* 10-30-91 JCR Split new, delete, and handler into seperate sources
* 11-13-91 JCR 32-bit version
* 11-13-95 CFW Not in debug libs.
* 05-22-98 JWM Support for KFrei's RTC work, and operator delete[].
* 07-28-98 JWM RTC update.
* 03-15-99 KBF RTC update (RTCALLBACK requires some windows defs)
* 05-26-99 KBF Updated RTC hook func params
* 10-21-99 PML Split from delete.cpp to fix mult defs and enable
* for both _DEBUG and non-debug (vs7#53440)
*
*******************************************************************************/
#include <cruntime.h>
#include <malloc.h>
#include <new.h>
#include <windows.h>
#include <rtcsup.h>
void operator delete[]( void * p )
{
RTCCALLBACK(_RTC_Free_hook, (p, 0))
operator delete(p);
}