forked from dueca/dueca
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdassert.h.in
More file actions
30 lines (26 loc) · 807 Bytes
/
dassert.h.in
File metadata and controls
30 lines (26 loc) · 807 Bytes
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
/* ------------------------------------------------------------------ */
/* item : dassert.hxx
made by : Rene van Paassen
date : 170324
category : header file
description : Control of assert statements, only to be
used in debug/test versions
changes : 170324 first version
language : C++
copyright : (c) 17 TUDelft-AE-C&S
copyright : (c) 2022 René van Paassen
license : EUPL-1.2
*/
#ifndef dassert_hxx
#define dassert_hxx
/** Flag to determine whether assert is active or inert */
#cmakedefine ASSERT_ACTIVE
#ifdef ASSERT_ACTIVE
#include <cassert>
#else
#ifdef assert
#undef assert
#endif
#define assert(A)
#endif
#endif