Rocstar
1.0
Rocstar multiphysics simulation application
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
kernel_assertions.h
Go to the documentation of this file.
1
// ======================================================================
2
//
3
// Copyright (c) 1997 The CGAL Consortium
4
5
// This software and related documentation is part of the Computational
6
// Geometry Algorithms Library (CGAL).
7
// This software and documentation is provided "as-is" and without warranty
8
// of any kind. In no event shall the CGAL Consortium be liable for any
9
// damage of any kind.
10
//
11
// Every use of CGAL requires a license.
12
//
13
// Academic research and teaching license
14
// - For academic research and teaching purposes, permission to use and copy
15
// the software and its documentation is hereby granted free of charge,
16
// provided that it is not a component of a commercial product, and this
17
// notice appears in all copies of the software and related documentation.
18
//
19
// Commercial licenses
20
// - A commercial license is available through Algorithmic Solutions, who also
21
// markets LEDA (http://www.algorithmic-solutions.de).
22
// - Commercial users may apply for an evaluation license by writing to
23
// Algorithmic Solutions (contact@algorithmic-solutions.com).
24
//
25
// The CGAL Consortium consists of Utrecht University (The Netherlands),
26
// ETH Zurich (Switzerland), Free University of Berlin (Germany),
27
// INRIA Sophia-Antipolis (France), Martin-Luther-University Halle-Wittenberg
28
// (Germany), Max-Planck-Institute Saarbrucken (Germany), RISC Linz (Austria),
29
// and Tel-Aviv University (Israel).
30
//
31
// ----------------------------------------------------------------------
32
//
33
// release : CGAL-2.2
34
// release_date : 2000, September 30
35
//
36
// source : Generated from script create_assertions.sh
37
// file : include/CGAL/kernel_assertions.h
38
// package : Kernel_basic (3.14)
39
// revision :
40
// revision_date : 15 Mar 1999
41
// author(s) : script by Geert-Jan Giezeman and Sven Schönherr
42
//
43
// coordinator : MPI, Saarbruecken
44
//
45
// email : contact@cgal.org
46
// www : http://www.cgal.org
47
//
48
// ======================================================================
49
50
51
52
// macro definitions
53
// =================
54
// assertions
55
// ----------
56
57
58
#if defined(CGAL_KERNEL_NO_ASSERTIONS) || defined(CGAL_NO_ASSERTIONS) \
59
|| defined(NDEBUG)
60
# define CGAL_kernel_assertion(EX) ((void)0)
61
# define CGAL_kernel_assertion_msg(EX,MSG) ((void)0)
62
# define CGAL_kernel_assertion_code(CODE)
63
#else
64
# define CGAL_kernel_assertion(EX) \
65
((EX)?((void)0): ::CGAL::assertion_fail( # EX , __FILE__, __LINE__, 0))
66
# define CGAL_kernel_assertion_msg(EX,MSG) \
67
((EX)?((void)0): ::CGAL::assertion_fail( # EX , __FILE__, __LINE__, MSG))
68
# define CGAL_kernel_assertion_code(CODE) CODE
69
#endif // CGAL_KERNEL_NO_ASSERTIONS
70
71
#if defined(CGAL_KERNEL_NO_ASSERTIONS) || defined(CGAL_NO_ASSERTIONS) \
72
|| (!defined(CGAL_KERNEL_CHECK_EXACTNESS) && !defined(CGAL_CHECK_EXACTNESS))\
73
|| defined(NDEBUG)
74
# define CGAL_kernel_exactness_assertion(EX) ((void)0)
75
# define CGAL_kernel_exactness_assertion_msg(EX,MSG) ((void)0)
76
# define CGAL_kernel_exactness_assertion_code(CODE)
77
#else
78
# define CGAL_kernel_exactness_assertion(EX) \
79
((EX)?((void)0): ::CGAL::assertion_fail( # EX , __FILE__, __LINE__, 0))
80
# define CGAL_kernel_exactness_assertion_msg(EX,MSG) \
81
((EX)?((void)0): ::CGAL::assertion_fail( # EX , __FILE__, __LINE__, MSG))
82
# define CGAL_kernel_exactness_assertion_code(CODE) CODE
83
#endif // CGAL_KERNEL_NO_ASSERTIONS
84
85
#if defined(CGAL_KERNEL_NO_ASSERTIONS) \
86
|| defined(CGAL_NO_ASSERTIONS) \
87
|| (!defined(CGAL_KERNEL_CHECK_EXPENSIVE) && !defined(CGAL_CHECK_EXPENSIVE)) \
88
|| defined(NDEBUG)
89
# define CGAL_kernel_expensive_assertion(EX) ((void)0)
90
# define CGAL_kernel_expensive_assertion_msg(EX,MSG) ((void)0)
91
# define CGAL_kernel_expensive_assertion_code(CODE)
92
#else
93
# define CGAL_kernel_expensive_assertion(EX) \
94
((EX)?((void)0): ::CGAL::assertion_fail( # EX , __FILE__, __LINE__, 0))
95
# define CGAL_kernel_expensive_assertion_msg(EX,MSG) \
96
((EX)?((void)0): ::CGAL::assertion_fail( # EX , __FILE__, __LINE__, MSG))
97
# define CGAL_kernel_expensive_assertion_code(CODE) CODE
98
#endif // CGAL_KERNEL_NO_ASSERTIONS
99
100
#if defined(CGAL_KERNEL_NO_ASSERTIONS) || defined(CGAL_NO_ASSERTIONS) \
101
|| (!defined(CGAL_KERNEL_CHECK_EXACTNESS) && !defined(CGAL_CHECK_EXACTNESS))\
102
|| (!defined(CGAL_KERNEL_CHECK_EXPENSIVE) && !defined(CGAL_CHECK_EXPENSIVE)) \
103
|| defined(NDEBUG)
104
# define CGAL_kernel_expensive_exactness_assertion(EX) ((void)0)
105
# define CGAL_kernel_expensive_exactness_assertion_msg(EX,MSG) ((void)0)
106
# define CGAL_kernel_expensive_exactness_assertion_code(CODE)
107
#else
108
# define CGAL_kernel_expensive_exactness_assertion(EX) \
109
((EX)?((void)0): ::CGAL::assertion_fail( # EX , __FILE__, __LINE__, 0))
110
# define CGAL_kernel_expensive_exactness_assertion_msg(EX,MSG) \
111
((EX)?((void)0): ::CGAL::assertion_fail( # EX , __FILE__, __LINE__, MSG))
112
# define CGAL_kernel_expensive_exactness_assertion_code(CODE) CODE
113
#endif // CGAL_KERNEL_NO_ASSERTIONS
114
115
116
// preconditions
117
// -------------
118
119
#if defined(CGAL_KERNEL_NO_PRECONDITIONS) || defined(CGAL_NO_PRECONDITIONS) \
120
|| defined(NDEBUG)
121
# define CGAL_kernel_precondition(EX) ((void)0)
122
# define CGAL_kernel_precondition_msg(EX,MSG) ((void)0)
123
# define CGAL_kernel_precondition_code(CODE)
124
#else
125
# define CGAL_kernel_precondition(EX) \
126
((EX)?((void)0): ::CGAL::precondition_fail( # EX , __FILE__, __LINE__, 0))
127
# define CGAL_kernel_precondition_msg(EX,MSG) \
128
((EX)?((void)0): ::CGAL::precondition_fail( # EX , __FILE__, __LINE__, MSG))
129
# define CGAL_kernel_precondition_code(CODE) CODE
130
#endif // CGAL_KERNEL_NO_PRECONDITIONS
131
132
#if defined(CGAL_KERNEL_NO_PRECONDITIONS) || defined(CGAL_NO_PRECONDITIONS) \
133
|| (!defined(CGAL_KERNEL_CHECK_EXACTNESS) && !defined(CGAL_CHECK_EXACTNESS))\
134
|| defined(NDEBUG)
135
# define CGAL_kernel_exactness_precondition(EX) ((void)0)
136
# define CGAL_kernel_exactness_precondition_msg(EX,MSG) ((void)0)
137
# define CGAL_kernel_exactness_precondition_code(CODE)
138
#else
139
# define CGAL_kernel_exactness_precondition(EX) \
140
((EX)?((void)0): ::CGAL::precondition_fail( # EX , __FILE__, __LINE__, 0))
141
# define CGAL_kernel_exactness_precondition_msg(EX,MSG) \
142
((EX)?((void)0): ::CGAL::precondition_fail( # EX , __FILE__, __LINE__, MSG))
143
# define CGAL_kernel_exactness_precondition_code(CODE) CODE
144
#endif // CGAL_KERNEL_NO_PRECONDITIONS
145
146
#if defined(CGAL_KERNEL_NO_PRECONDITIONS) || defined(CGAL_NO_PRECONDITIONS) \
147
|| (!defined(CGAL_KERNEL_CHECK_EXPENSIVE) && !defined(CGAL_CHECK_EXPENSIVE)) \
148
|| defined(NDEBUG)
149
# define CGAL_kernel_expensive_precondition(EX) ((void)0)
150
# define CGAL_kernel_expensive_precondition_msg(EX,MSG) ((void)0)
151
# define CGAL_kernel_expensive_precondition_code(CODE)
152
#else
153
# define CGAL_kernel_expensive_precondition(EX) \
154
((EX)?((void)0): ::CGAL::precondition_fail( # EX , __FILE__, __LINE__, 0))
155
# define CGAL_kernel_expensive_precondition_msg(EX,MSG) \
156
((EX)?((void)0): ::CGAL::precondition_fail( # EX , __FILE__, __LINE__, MSG))
157
# define CGAL_kernel_expensive_precondition_code(CODE) CODE
158
#endif // CGAL_KERNEL_NO_PRECONDITIONS
159
160
#if defined(CGAL_KERNEL_NO_PRECONDITIONS) || defined(CGAL_NO_PRECONDITIONS) \
161
|| (!defined(CGAL_KERNEL_CHECK_EXACTNESS) && !defined(CGAL_CHECK_EXACTNESS))\
162
|| (!defined(CGAL_KERNEL_CHECK_EXPENSIVE) && !defined(CGAL_CHECK_EXPENSIVE)) \
163
|| defined(NDEBUG)
164
# define CGAL_kernel_expensive_exactness_precondition(EX) ((void)0)
165
# define CGAL_kernel_expensive_exactness_precondition_msg(EX,MSG) ((void)0)
166
# define CGAL_kernel_expensive_exactness_precondition_code(CODE)
167
#else
168
# define CGAL_kernel_expensive_exactness_precondition(EX) \
169
((EX)?((void)0): ::CGAL::precondition_fail( # EX , __FILE__, __LINE__, 0))
170
# define CGAL_kernel_expensive_exactness_precondition_msg(EX,MSG) \
171
((EX)?((void)0): ::CGAL::precondition_fail( # EX , __FILE__, __LINE__, MSG))
172
# define CGAL_kernel_expensive_exactness_precondition_code(CODE) CODE
173
#endif // CGAL_KERNEL_NO_PRECONDITIONS
174
175
176
// postconditions
177
// --------------
178
179
#if defined(CGAL_KERNEL_NO_POSTCONDITIONS) || defined(CGAL_NO_POSTCONDITIONS) \
180
|| defined(NDEBUG)
181
# define CGAL_kernel_postcondition(EX) ((void)0)
182
# define CGAL_kernel_postcondition_msg(EX,MSG) ((void)0)
183
# define CGAL_kernel_postcondition_code(CODE)
184
#else
185
# define CGAL_kernel_postcondition(EX) \
186
((EX)?((void)0): ::CGAL::postcondition_fail( # EX , __FILE__, __LINE__, 0))
187
# define CGAL_kernel_postcondition_msg(EX,MSG) \
188
((EX)?((void)0): ::CGAL::postcondition_fail( # EX , __FILE__, __LINE__, MSG))
189
# define CGAL_kernel_postcondition_code(CODE) CODE
190
#endif // CGAL_KERNEL_NO_POSTCONDITIONS
191
192
#if defined(CGAL_KERNEL_NO_POSTCONDITIONS) || defined(CGAL_NO_POSTCONDITIONS) \
193
|| (!defined(CGAL_KERNEL_CHECK_EXACTNESS) && !defined(CGAL_CHECK_EXACTNESS))\
194
|| defined(NDEBUG)
195
# define CGAL_kernel_exactness_postcondition(EX) ((void)0)
196
# define CGAL_kernel_exactness_postcondition_msg(EX,MSG) ((void)0)
197
# define CGAL_kernel_exactness_postcondition_code(CODE)
198
#else
199
# define CGAL_kernel_exactness_postcondition(EX) \
200
((EX)?((void)0): ::CGAL::postcondition_fail( # EX , __FILE__, __LINE__, 0))
201
# define CGAL_kernel_exactness_postcondition_msg(EX,MSG) \
202
((EX)?((void)0): ::CGAL::postcondition_fail( # EX , __FILE__, __LINE__, MSG))
203
# define CGAL_kernel_exactness_postcondition_code(CODE) CODE
204
#endif // CGAL_KERNEL_NO_POSTCONDITIONS
205
206
#if defined(CGAL_KERNEL_NO_POSTCONDITIONS) || defined(CGAL_NO_POSTCONDITIONS) \
207
|| (!defined(CGAL_KERNEL_CHECK_EXPENSIVE) && !defined(CGAL_CHECK_EXPENSIVE)) \
208
|| defined(NDEBUG)
209
# define CGAL_kernel_expensive_postcondition(EX) ((void)0)
210
# define CGAL_kernel_expensive_postcondition_msg(EX,MSG) ((void)0)
211
# define CGAL_kernel_expensive_postcondition_code(CODE)
212
#else
213
# define CGAL_kernel_expensive_postcondition(EX) \
214
((EX)?((void)0): ::CGAL::postcondition_fail( # EX , __FILE__, __LINE__, 0))
215
# define CGAL_kernel_expensive_postcondition_msg(EX,MSG) \
216
((EX)?((void)0): ::CGAL::postcondition_fail( # EX , __FILE__, __LINE__, MSG))
217
# define CGAL_kernel_expensive_postcondition_code(CODE) CODE
218
#endif // CGAL_KERNEL_NO_POSTCONDITIONS
219
220
#if defined(CGAL_KERNEL_NO_POSTCONDITIONS) || defined(CGAL_NO_POSTCONDITIONS) \
221
|| (!defined(CGAL_KERNEL_CHECK_EXACTNESS) && !defined(CGAL_CHECK_EXACTNESS))\
222
|| (!defined(CGAL_KERNEL_CHECK_EXPENSIVE) && !defined(CGAL_CHECK_EXPENSIVE)) \
223
|| defined(NDEBUG)
224
# define CGAL_kernel_expensive_exactness_postcondition(EX) ((void)0)
225
# define CGAL_kernel_expensive_exactness_postcondition_msg(EX,MSG) ((void)0)
226
# define CGAL_kernel_expensive_exactness_postcondition_code(CODE)
227
#else
228
# define CGAL_kernel_expensive_exactness_postcondition(EX) \
229
((EX)?((void)0): ::CGAL::postcondition_fail( # EX , __FILE__, __LINE__, 0))
230
# define CGAL_kernel_expensive_exactness_postcondition_msg(EX,MSG) \
231
((EX)?((void)0): ::CGAL::postcondition_fail( # EX , __FILE__, __LINE__, MSG))
232
# define CGAL_kernel_expensive_exactness_postcondition_code(CODE) CODE
233
#endif // CGAL_KERNEL_NO_POSTCONDITIONS
234
235
236
// warnings
237
// --------
238
239
#if defined(CGAL_KERNEL_NO_WARNINGS) || defined(CGAL_NO_WARNINGS) \
240
|| defined(NDEBUG)
241
# define CGAL_kernel_warning(EX) ((void)0)
242
# define CGAL_kernel_warning_msg(EX,MSG) ((void)0)
243
# define CGAL_kernel_warning_code(CODE)
244
#else
245
# define CGAL_kernel_warning(EX) \
246
((EX)?((void)0): ::CGAL::warning_fail( # EX , __FILE__, __LINE__, 0))
247
# define CGAL_kernel_warning_msg(EX,MSG) \
248
((EX)?((void)0): ::CGAL::warning_fail( # EX , __FILE__, __LINE__, MSG))
249
# define CGAL_kernel_warning_code(CODE) CODE
250
#endif // CGAL_KERNEL_NO_WARNINGS
251
252
#if defined(CGAL_KERNEL_NO_WARNINGS) || defined(CGAL_NO_WARNINGS) \
253
|| (!defined(CGAL_KERNEL_CHECK_EXACTNESS) && !defined(CGAL_CHECK_EXACTNESS))\
254
|| defined(NDEBUG)
255
# define CGAL_kernel_exactness_warning(EX) ((void)0)
256
# define CGAL_kernel_exactness_warning_msg(EX,MSG) ((void)0)
257
# define CGAL_kernel_exactness_warning_code(CODE)
258
#else
259
# define CGAL_kernel_exactness_warning(EX) \
260
((EX)?((void)0): ::CGAL::warning_fail( # EX , __FILE__, __LINE__, 0))
261
# define CGAL_kernel_exactness_warning_msg(EX,MSG) \
262
((EX)?((void)0): ::CGAL::warning_fail( # EX , __FILE__, __LINE__, MSG))
263
# define CGAL_kernel_exactness_warning_code(CODE) CODE
264
#endif // CGAL_KERNEL_NO_WARNINGS
265
266
#if defined(CGAL_KERNEL_NO_WARNINGS) || defined(CGAL_NO_WARNINGS) \
267
|| (!defined(CGAL_KERNEL_CHECK_EXPENSIVE) && !defined(CGAL_CHECK_EXPENSIVE)) \
268
|| defined(NDEBUG)
269
# define CGAL_kernel_expensive_warning(EX) ((void)0)
270
# define CGAL_kernel_expensive_warning_msg(EX,MSG) ((void)0)
271
# define CGAL_kernel_expensive_warning_code(CODE)
272
#else
273
# define CGAL_kernel_expensive_warning(EX) \
274
((EX)?((void)0): ::CGAL::warning_fail( # EX , __FILE__, __LINE__, 0))
275
# define CGAL_kernel_expensive_warning_msg(EX,MSG) \
276
((EX)?((void)0): ::CGAL::warning_fail( # EX , __FILE__, __LINE__, MSG))
277
# define CGAL_kernel_expensive_warning_code(CODE) CODE
278
#endif // CGAL_KERNEL_NO_WARNINGS
279
280
#if defined(CGAL_KERNEL_NO_WARNINGS) || defined(CGAL_NO_WARNINGS) \
281
|| (!defined(CGAL_KERNEL_CHECK_EXACTNESS) && !defined(CGAL_CHECK_EXACTNESS))\
282
|| (!defined(CGAL_KERNEL_CHECK_EXPENSIVE) && !defined(CGAL_CHECK_EXPENSIVE)) \
283
|| defined(NDEBUG)
284
# define CGAL_kernel_expensive_exactness_warning(EX) ((void)0)
285
# define CGAL_kernel_expensive_exactness_warning_msg(EX,MSG) ((void)0)
286
# define CGAL_kernel_expensive_exactness_warning_code(CODE)
287
#else
288
# define CGAL_kernel_expensive_exactness_warning(EX) \
289
((EX)?((void)0): ::CGAL::warning_fail( # EX , __FILE__, __LINE__, 0))
290
# define CGAL_kernel_expensive_exactness_warning_msg(EX,MSG) \
291
((EX)?((void)0): ::CGAL::warning_fail( # EX , __FILE__, __LINE__, MSG))
292
# define CGAL_kernel_expensive_exactness_warning_code(CODE) CODE
293
#endif // CGAL_KERNEL_NO_WARNINGS
294
295
Rocface
CGAL
include
CGAL
kernel_assertions.h
Generated on Wed Nov 30 2016 16:56:08 for Rocstar by
1.8.5