mirror of
https://github.com/pantor/inja.git
synced 2026-10-07 12:57:17 +00:00
#ifndef INJA_THROW
This commit is contained in:
1 parent
8d65633b6a
commit
e91a2fd350
2 files changed
+16
-8
No files matched your search
@@ -6,13 +6,17 @@
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
#if (defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND)) && !defined(INJA_NOEXCEPTION)
|
||||
#ifndef INJA_THROW
|
||||
#define INJA_THROW(exception) throw exception
|
||||
#endif
|
||||
#else
|
||||
#include <cstdlib>
|
||||
#include <cstdlib>
|
||||
#ifndef INJA_THROW
|
||||
#define INJA_THROW(exception) std::abort()
|
||||
#ifndef INJA_NOEXCEPTION
|
||||
#define INJA_NOEXCEPTION
|
||||
#endif
|
||||
#endif
|
||||
#ifndef INJA_NOEXCEPTION
|
||||
#define INJA_NOEXCEPTION
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// #include "environment.hpp"
|
||||
|
||||
Reference in new issue
Block a user