]> git.ipfire.org Git - thirdparty/squid.git/blame - include/leakcheck.h
SourceFormat Enforcement
[thirdparty/squid.git] / include / leakcheck.h
CommitLineData
5c193dec 1/*
bde978a6 2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
5c193dec
AJ
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
aff65b83
AJ
9#ifndef _SQUID_LEAKCHECK_H
10#define _SQUID_LEAKCHECK_H
11
12#if LEAK_CHECK_MODE && 0 /* doesn't work at the moment */
13#define LOCAL_ARRAY(type,name,size) \
14 static type *local_##name=NULL; \
15 type *name = local_##name ? local_##name : \
16 ( local_##name = (type *)xcalloc(size, sizeof(type)) )
17#else
18#define LOCAL_ARRAY(type,name,size) static type name[size]
19#endif
20
21#endif
f53969cc 22