NT4/private/windows/spooler/spllib/mem.hxx
2020-09-30 17:12:29 +02:00

78 lines
883 B
C++

/*++
Copyright (c) 1994 Microsoft Corporation
All rights reserved.
Module Name:
Mem.hxx
Abstract:
Memory header
Must include Common.hxx.
Author:
Albert Ting (AlbertT) 20-May-1994
Revision History:
--*/
#ifdef __cplusplus
extern "C" {
#endif
PVOID
AllocMem(
UINT cbSize
);
VOID
FreeMem(
PVOID pMem
);
#if DBG
PVOID
DbgAllocMem(
UINT cbSize
);
VOID
DbgFreeMem(
PVOID pMem
);
#endif
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
/********************************************************************
The following are used if you want to override a classes'
new and delete using SAFE_NEW.
********************************************************************/
inline
PVOID
SafeNew(
size_t size
)
{
return AllocMem(size);
}
inline
VOID
SafeDelete(
PVOID pVoid)
{
FreeMem( pVoid );
}
#endif