]> git.ipfire.org Git - thirdparty/squid.git/blob - include/leakcheck.h
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / include / leakcheck.h
1 /*
2 * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
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
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
22