Inja
3.5.0
A Template Engine for Modern C++
Loading...
Searching...
No Matches
include
inja
throw.hpp
1
#ifndef INCLUDE_INJA_THROW_HPP_
2
#define INCLUDE_INJA_THROW_HPP_
3
4
#if (defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND)) && !defined(INJA_NOEXCEPTION)
5
#ifndef INJA_THROW
6
#define INJA_THROW(exception) throw exception
7
#endif
8
#else
9
#include <cstdlib>
10
#ifndef INJA_THROW
11
#define INJA_THROW(exception) \
12
std::abort(); \
13
std::ignore = exception
14
#endif
15
#ifndef INJA_NOEXCEPTION
16
#define INJA_NOEXCEPTION
17
#endif
18
#endif
19
20
#endif
// INCLUDE_INJA_THROW_HPP_
Generated by
1.9.8