]> git.ipfire.org Git - thirdparty/squid.git/blame_incremental - include/leakcheck.h
SourceFormat Enforcement
[thirdparty/squid.git] / include / leakcheck.h
... / ...
CommitLineData
1/*
2 * Copyright (C) 1996-2015 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