Exception.hh 912 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*===========================================================================*\
 *                                                                           *
 *                               IGM                                         *
 *      Copyright (C) 2017 by Computer Graphics Group, RWTH Aachen           *
 *                           www.rwth-graphics.de                            *
 *                                                                           *
\*===========================================================================*/

// Since noexcept is not supported by all compiler we define the NOEXCEPT macro here
// which does nothing if noexcept is not supported and passes its argument to noexcept
// if it is supported.

#if defined(_MSC_VER) && (_MSC_VER <= 1800)
// noexcept not supported
#define NOEXCEPT(ON)
#else
// noexcept supported
#define NOEXCEPT(ON) noexcept(ON)
#endif