client-c
0.8.1
Main Page
Classes
Files
File List
File Members
kaa_mem.h
Go to the documentation of this file.
1
17
#ifndef KAA_MEM_H_
18
#define KAA_MEM_H_
19
20
#include "../platform/mem.h"
21
22
#ifdef KAA_TRACE_MEMORY_ALLOCATIONS
23
24
#include "../utilities/kaa_log.h"
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
30
void
* kaa_trace_memory_allocs_malloc(
size_t
s,
const
char
*file,
int
line);
31
void
* kaa_trace_memory_allocs_calloc(
size_t
n,
size_t
s,
const
char
*file,
int
line);
32
void
kaa_trace_memory_allocs_free(
void
* p,
const
char
*file,
int
line);
33
void
kaa_trace_memory_allocs_set_logger(
kaa_logger_t
*logger);
34
35
#define KAA_MALLOC(S) kaa_trace_memory_allocs_malloc(S, __FILE__, __LINE__)
36
#define KAA_CALLOC(N,S) kaa_trace_memory_allocs_calloc((N), (S), __FILE__, __LINE__)
37
#define KAA_FREE(P) kaa_trace_memory_allocs_free((P), __FILE__, __LINE__)
38
39
#ifdef __cplusplus
40
}
// extern "C"
41
#endif
42
43
#else // defined KAA_TRACE_MEMORY_ALLOCATIONS
44
45
46
#define KAA_MALLOC(S) __KAA_MALLOC(S)
47
#define KAA_CALLOC(N,S) __KAA_CALLOC(N,S)
48
#define KAA_REALLOC(P,S) __KAA_REALLOC(P,S)
49
#define KAA_FREE(P) __KAA_FREE(P)
50
51
52
#endif // defined KAA_TRACE_MEMORY_ALLOCATIONS
53
54
#endif
/* KAA_MEM_H_ */
kaa_logger_t
struct kaa_logger_t kaa_logger_t
Definition:
kaa_context.h:85
var
lib
jenkins
workspace
kaa_release_0_8_1
client
client-multi
client-c
src
kaa
utilities
kaa_mem.h
Generated on Tue Mar 15 2016 21:03:26 for client-c by
1.8.7