]> git.ipfire.org Git - thirdparty/squid.git/blame - include/leakcheck.h
Boilerplate: update copyright on compat/ library sources
[thirdparty/squid.git] / include / leakcheck.h
CommitLineData
aff65b83
AJ
1#ifndef _SQUID_LEAKCHECK_H
2#define _SQUID_LEAKCHECK_H
3
4#if LEAK_CHECK_MODE && 0 /* doesn't work at the moment */
5#define LOCAL_ARRAY(type,name,size) \
6 static type *local_##name=NULL; \
7 type *name = local_##name ? local_##name : \
8 ( local_##name = (type *)xcalloc(size, sizeof(type)) )
9#else
10#define LOCAL_ARRAY(type,name,size) static type name[size]
11#endif
12
13#endif