Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
LeakDetect.h
1
2
/* See examples/misc/LeakDetector.cpp */
3
#ifdef __cplusplus
4
extern
"C"
{
5
#endif
6
#include <stddef.h>
7
void
* baLeakDetectMalloc(
size_t
n,
const
char
* file,
int
line);
8
void
* baLeakDetectRealloc(
void
* p,
size_t
n,
const
char
* file,
int
line);
9
void
baLeakDetectFree(
void
* p,
const
char
* file,
int
line);
10
#ifdef __cplusplus
11
}
12
#endif
13
#define baMalloc(n) baLeakDetectMalloc(n, __FILE__, __LINE__)
14
#define baRealloc(p,n) baLeakDetectRealloc(p, n, __FILE__, __LINE__)
15
#define baFree(p) baLeakDetectFree(p, __FILE__, __LINE__)
inc
LeakDetect.h
Barracuda Application Server
documentation generated on Sun Sep 20 2026 07:32:41