XNetwork
1.7.5; VERSION ${PROJECT_VERSION}
Loading...
Searching...
No Matches
xnetwork
xnetwork_config.hpp
Go to the documentation of this file.
1
/***************************************************************************
2
* Copyright (c) Johan Mabille, Sylvain Corlay and Wolf Vollprecht *
3
* Copyright (c) QuantStack *
4
* *
5
* Distributed under the terms of the BSD 3-Clause License. *
6
* *
7
* The full license is in the file LICENSE, distributed with this software. *
8
****************************************************************************/
9
18
#ifndef XNETWORK_CONFIG_HPP
19
#define XNETWORK_CONFIG_HPP
20
22
#define XNETWORK_VERSION_MAJOR 0
24
#define XNETWORK_VERSION_MINOR 1
26
#define XNETWORK_VERSION_PATCH 1
27
28
#ifndef __has_feature
29
# define __has_feature(x) 0
30
#endif
31
32
// Attempt to discover whether we're being compiled with exception support
33
#if (defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND)) \
34
&& !defined(XNETWORK_NO_EXCEPTIONS)
35
// Exceptions are enabled.
36
#else
37
// Exceptions are disabled.
38
# define XNETWORK_NO_EXCEPTIONS
39
#endif
40
41
#if defined(XNETWORK_NO_EXCEPTIONS)
42
# define XNETWORK_THROW(_, msg) \
43
{ \
44
std::cerr << msg << '\n'; \
45
std::abort(); \
46
}
47
#else
48
# define XNETWORK_THROW(exception, msg) throw exception(msg)
49
#endif
50
51
#endif
Generated by
1.9.8