Main MRPT website > C++ reference for MRPT 1.5.6
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-2017, 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
XSTYPES_DLL_API void * xsAlignedMalloc(size_t sz)
XSTYPES_DLL_API void * xsMalloc(size_t sz)
XSTYPES_DLL_API void * xsAlignedRealloc(void *ptr, size_t sz)
XSTYPES_DLL_API void xsFree(void *ptr)
#define XSTYPES_DLL_API
Definition: xstypesconfig.h:9
XSTYPES_DLL_API void * xsRealloc(void *ptr, size_t sz)
XSTYPES_DLL_API void xsAlignedFree(void *ptr)



Page generated by Doxygen 1.8.14 for MRPT 1.5.6 Git: 4c65e8431 Tue Apr 24 08:18:17 2018 +0200 at lun oct 28 01:35:26 CET 2019