LoAdSG
myAssert.h
1/**********************************************************************************
2* Author: Christoph Pflaum, Riccarda Scherner-Griesshammer
3 * Department Informatik Lehrstuhl 10 - Systemsimulation
4 * Friedrich-Alexander Universität Erlangen-Nürnberg
5 *
6*********************************************/
7#ifndef MYASSERT_H
8#define MYASSERT_H
9
10
11#include <assert.h>
12#include "abbrevi.h"
13
14
15
16
17
18inline void myAssert(bool thisShouldhold) {
19#ifdef ASSERT
20 assert(thisShouldhold);
21#endif
22}
23
24inline void assertDimension(const int d) {
25#ifdef ASSERT
26 assert(d>=0);
27 assert(d<DimensionSparseGrid);
28#endif
29}
30
31
32
33#endif // MYASSERT_H
34