]>
git.ipfire.org Git - thirdparty/squid.git/blob - include/leakcheck.h
2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
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.
9 #ifndef _SQUID_LEAKCHECK_H
10 #define _SQUID_LEAKCHECK_H
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)) )
18 #define LOCAL_ARRAY(type,name,size) static type name[size]