windows-nt/Source/XPSP1/NT/shell/osshell/dskquota/common/alloc.h

29 lines
974 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#ifndef _INC_DSKQUOTA_ALLOC_H
#define _INC_DSKQUOTA_ALLOC_H
//////////////////////////////////////////////////////////////////////////////
/* File: alloc.h
Description: Installs a "new handler" that throws CAllocException
when a memory allocation request fails. Required since our
compiler doesn't throw bad_alloc on memory alloc failures.
Revision History:
Date Description Programmer
-------- --------------------------------------------------- ----------
10/20/97 Initial creation. BrianAu
*/
///////////////////////////////////////////////////////////////////////////////
//
// Declarations for overloading global new and delete.
//
void * __cdecl operator new(size_t size);
void __cdecl operator delete(void *ptr);
void * __cdecl operator new[](size_t size);
void __cdecl operator delete[](void *ptr);
#endif // _INC_DSKQUOTA_ALLOC_H