Windows2003-3790/windows/richedit/inci/qheap.h

25 lines
560 B
C
Raw Permalink Normal View History

2001-01-01 00:00:00 +01:00
#ifndef QHEAP_DEFINED
#define QHEAP_DEFINED
#include "lsidefs.h"
#include "pqheap.h"
PQHEAP CreateQuickHeap(PLSC, DWORD, DWORD, BOOL);
void DestroyQuickHeap(PQHEAP);
void* PvNewQuickProc(PQHEAP);
void DisposeQuickPvProc(PQHEAP, void*);
void FlushQuickHeap(PQHEAP);
#ifdef DEBUG
DWORD CbObjQuick(PQHEAP);
#endif
#define PvNewQuick(pqh, cb) \
(Assert((cb) == CbObjQuick(pqh)), PvNewQuickProc(pqh))
#define DisposeQuickPv(pqh, pv, size) \
(Assert(size == CbObjQuick(pqh)), DisposeQuickPvProc(pqh,pv))
#endif /* QHEAP_DEFINED */