blob: ca9d85783fb97a37b3f1dfdddd7f348135c5663c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
/*******************************************************************
* (c) Copyright 2011-2012 Discretix Technologies Ltd. *
* This file is licensed under the terms provided in the file *
* libcc54/LICENSE in this directory or a parent directory *
********************************************************************/
#ifndef _DX_PAL_MEMALLOC_INT_H
#define _DX_PAL_MEMALLOC_INT_H
#ifdef __cplusplus
extern "C"
{
#endif
#include <stdlib.h>
/**
* @brief File Description:
* This file contains wrappers for memory operations APIs.
*/
/*----------------------------
PUBLIC FUNCTIONS
-----------------------------------*/
/**
* @brief A wrapper over malloc functionality. The function allocates a buffer according to given size
*
*/
#define _DX_PAL_MemMalloc malloc
/**
* @brief A wrapper over realloc functionality. The function allocates and copy a buffer
* according to size
*
*/
#define _DX_PAL_MemRealloc realloc
/**
* @brief A wrapper over free functionality/ The function will free allocated memory.
*
*/
#define _DX_PAL_MemFree free
#ifdef __cplusplus
}
#endif
#endif
|