xsdebugcounters.h
Go to the documentation of this file.
1 
2 // Copyright (c) 2003-2021 Xsens Technologies B.V. or subsidiaries worldwide.
3 // All rights reserved.
4 //
5 // Redistribution and use in source and binary forms, with or without modification,
6 // are permitted provided that the following conditions are met:
7 //
8 // 1. Redistributions of source code must retain the above copyright notice,
9 // this list of conditions, and the following disclaimer.
10 //
11 // 2. Redistributions in binary form must reproduce the above copyright notice,
12 // this list of conditions, and the following disclaimer in the documentation
13 // and/or other materials provided with the distribution.
14 //
15 // 3. Neither the names of the copyright holders nor the names of their contributors
16 // may be used to endorse or promote products derived from this software without
17 // specific prior written permission.
18 //
19 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
20 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
21 // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
22 // THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 // SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
24 // OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY OR
26 // TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.THE LAWS OF THE NETHERLANDS
28 // SHALL BE EXCLUSIVELY APPLICABLE AND ANY DISPUTES SHALL BE FINALLY SETTLED UNDER THE RULES
29 // OF ARBITRATION OF THE INTERNATIONAL CHAMBER OF COMMERCE IN THE HAGUE BY ONE OR MORE
30 // ARBITRATORS APPOINTED IN ACCORDANCE WITH SAID RULES.
31 //
32 
33 
34 // Copyright (c) 2003-2021 Xsens Technologies B.V. or subsidiaries worldwide.
35 // All rights reserved.
36 //
37 // Redistribution and use in source and binary forms, with or without modification,
38 // are permitted provided that the following conditions are met:
39 //
40 // 1. Redistributions of source code must retain the above copyright notice,
41 // this list of conditions, and the following disclaimer.
42 //
43 // 2. Redistributions in binary form must reproduce the above copyright notice,
44 // this list of conditions, and the following disclaimer in the documentation
45 // and/or other materials provided with the distribution.
46 //
47 // 3. Neither the names of the copyright holders nor the names of their contributors
48 // may be used to endorse or promote products derived from this software without
49 // specific prior written permission.
50 //
51 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
52 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
53 // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
54 // THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
55 // SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
56 // OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
57 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY OR
58 // TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
59 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.THE LAWS OF THE NETHERLANDS
60 // SHALL BE EXCLUSIVELY APPLICABLE AND ANY DISPUTES SHALL BE FINALLY SETTLED UNDER THE RULES
61 // OF ARBITRATION OF THE INTERNATIONAL CHAMBER OF COMMERCE IN THE HAGUE BY ONE OR MORE
62 // ARBITRATORS APPOINTED IN ACCORDANCE WITH SAID RULES.
63 //
64 
65 #ifndef XSDEBUGCOUNTERS_H
66 #define XSDEBUGCOUNTERS_H
67 
68 #include "xstypesconfig.h"
69 
70 #ifdef XSENS_USE_DEBUG_COUNTERS
71 #ifdef __cplusplus
72 extern "C" {
73 #endif
74 
76 extern XSTYPES_DLL_API int XsVector_allocCount(void);
77 extern XSTYPES_DLL_API int XsVector_freeCount(void);
78 extern int XsVector_incAllocCount(void);
79 extern int XsVector_incFreeCount(void);
80 
82 extern XSTYPES_DLL_API int XsMatrix_allocCount(void);
83 extern XSTYPES_DLL_API int XsMatrix_freeCount(void);
84 extern int XsMatrix_incAllocCount(void);
85 extern int XsMatrix_incFreeCount(void);
86 
88 extern XSTYPES_DLL_API int XsArray_allocCount(void);
89 extern XSTYPES_DLL_API int XsArray_freeCount(void);
90 extern int XsArray_incAllocCount(void);
91 extern int XsArray_incFreeCount(void);
92 
93 #ifdef __cplusplus
94 } // extern "C"
95 #endif
96 
97 #else
98 
99 inline static int XsVector_resetDebugCounts(void)
100 {
101  return 0;
102 }
103 inline static int XsVector_allocCount(void)
104 {
105  return 0;
106 }
107 inline static int XsVector_freeCount(void)
108 {
109  return 0;
110 }
111 inline static int XsVector_incAllocCount(void)
112 {
113  return 0;
114 }
115 inline static int XsVector_incFreeCount(void)
116 {
117  return 0;
118 }
119 
120 inline static int XsMatrix_resetDebugCounts(void)
121 {
122  return 0;
123 }
124 inline static int XsMatrix_allocCount(void)
125 {
126  return 0;
127 }
128 inline static int XsMatrix_freeCount(void)
129 {
130  return 0;
131 }
132 inline static int XsMatrix_incAllocCount(void)
133 {
134  return 0;
135 }
136 inline static int XsMatrix_incFreeCount(void)
137 {
138  return 0;
139 }
140 
141 inline static int XsArray_resetDebugCounts(void)
142 {
143  return 0;
144 }
145 inline static int XsArray_allocCount(void)
146 {
147  return 0;
148 }
149 inline static int XsArray_freeCount(void)
150 {
151  return 0;
152 }
153 inline static int XsArray_incAllocCount(void)
154 {
155  return 0;
156 }
157 inline static int XsArray_incFreeCount(void)
158 {
159  return 0;
160 }
161 
162 #endif
163 
164 
165 #endif
XsMatrix_freeCount
static int XsMatrix_freeCount(void)
Definition: xsdebugcounters.h:128
XsMatrix_resetDebugCounts
static int XsMatrix_resetDebugCounts(void)
Definition: xsdebugcounters.h:120
XsVector_incFreeCount
static int XsVector_incFreeCount(void)
Definition: xsdebugcounters.h:115
XsVector_allocCount
static int XsVector_allocCount(void)
Definition: xsdebugcounters.h:103
XsMatrix_allocCount
static int XsMatrix_allocCount(void)
Definition: xsdebugcounters.h:124
XsArray_incFreeCount
static int XsArray_incFreeCount(void)
Definition: xsdebugcounters.h:157
XsVector_resetDebugCounts
static int XsVector_resetDebugCounts(void)
Definition: xsdebugcounters.h:99
XsArray_resetDebugCounts
static int XsArray_resetDebugCounts(void)
Definition: xsdebugcounters.h:141
XsMatrix_incFreeCount
static int XsMatrix_incFreeCount(void)
Definition: xsdebugcounters.h:136
XsArray_freeCount
static int XsArray_freeCount(void)
Definition: xsdebugcounters.h:149
xstypesconfig.h
XsMatrix_incAllocCount
static int XsMatrix_incAllocCount(void)
Definition: xsdebugcounters.h:132
XSTYPES_DLL_API
#define XSTYPES_DLL_API
Definition: xstypesconfig.h:65
XsArray_incAllocCount
static int XsArray_incAllocCount(void)
Definition: xsdebugcounters.h:153
XsVector_freeCount
static int XsVector_freeCount(void)
Definition: xsdebugcounters.h:107
XsVector_incAllocCount
static int XsVector_incAllocCount(void)
Definition: xsdebugcounters.h:111
XsArray_allocCount
static int XsArray_allocCount(void)
Definition: xsdebugcounters.h:145


xsens_mti_driver
Author(s):
autogenerated on Sun Sep 3 2023 02:43:20