Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

41 lines
1.3 KiB

/***
*delete.cpp - defines C++ scalar delete routine, non-debug version
*
* 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 delete[] out to fix mult defs (vs7#53440)
*
*******************************************************************************/
#ifndef _DEBUG
#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));
free( p );
}
#endif /* _DEBUG */