
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5843 212acab6-be3b-0410-9dea-997c60f758d6
29 lines
649 B
C
29 lines
649 B
C
#pragma once
|
|
|
|
#include <plugin.h> // nsis plugin api
|
|
|
|
#ifdef _DEBUG
|
|
//#define _DEBUG_LEAKS
|
|
#endif
|
|
|
|
#ifdef _DEBUG_LEAKS
|
|
|
|
#define dbgGlobalAlloc(a, b) watchGlobalAlloc(a, b)
|
|
#define dbgGlobalFree(a) watchGlobalFree(a)
|
|
#define dbgGlobalCheck() watchGlobal();
|
|
void watchGlobal();
|
|
void watchGlobalFree(HGLOBAL block);
|
|
HGLOBAL watchGlobalAlloc(UINT Flags, UINT size);
|
|
|
|
#else
|
|
|
|
#define dbgGlobalAlloc(a, b) GlobalAlloc(a, b)
|
|
#define dbgGlobalFree(a) GlobalFree(a)
|
|
#define dbgGlobalCheck() {};
|
|
|
|
#endif
|
|
|
|
char *AllocString();
|
|
ExpressionItem *AllocItem();
|
|
ExpressionItem *AllocArray(int size);
|
|
ExpressionItem *CopyItem(ExpressionItem *item, int NeedConst = 0);
|