Main MRPT website > C++ reference for MRPT 1.9.9
xsmalloc.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #ifndef XSMALLOC_H
10 #define XSMALLOC_H
11 
12 #include "xstypesconfig.h"
13 #include <stddef.h>
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 XSTYPES_DLL_API void* xsMalloc(size_t sz);
20 XSTYPES_DLL_API void* xsRealloc(void* ptr, size_t sz);
21 XSTYPES_DLL_API void xsFree(void* ptr);
22 
23 XSTYPES_DLL_API void* xsAlignedMalloc(size_t sz);
24 XSTYPES_DLL_API void* xsAlignedRealloc(void* ptr, size_t sz);
25 XSTYPES_DLL_API void xsAlignedFree(void* ptr);
26 
27 #ifndef xsMathMalloc
28 #define xsMathMalloc(n) xsAlignedMalloc(n)
29 #endif
30 
31 #ifndef xsMathRealloc
32 #define xsMathRealloc(p, n) xsAlignedRealloc(p, n)
33 #endif
34 
35 #ifndef xsMathFree
36 #define xsMathFree(p) xsAlignedFree(p)
37 #endif
38 
39 #ifdef __cplusplus
40 } // extern "C"
41 #endif
42 
43 #endif // XSMALLOC_H
xsRealloc
XSTYPES_DLL_API void * xsRealloc(void *ptr, size_t sz)
xsAlignedRealloc
XSTYPES_DLL_API void * xsAlignedRealloc(void *ptr, size_t sz)
xsMalloc
XSTYPES_DLL_API void * xsMalloc(size_t sz)
xsFree
XSTYPES_DLL_API void xsFree(void *ptr)
xsAlignedMalloc
XSTYPES_DLL_API void * xsAlignedMalloc(size_t sz)
xsAlignedFree
XSTYPES_DLL_API void xsAlignedFree(void *ptr)
xstypesconfig.h
XSTYPES_DLL_API
#define XSTYPES_DLL_API
Definition: xstypesconfig.h:9



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST