🔨 added defined() check

This commit is contained in:
Niels Lohmann committed 2017-03-11 18:43:21 +01:00
1 parent e3e6cbecc7
commit 122afbf128
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -82,7 +82,7 @@ SOFTWARE.
#endif
// allow to disable exceptions
#if (__cpp_exceptions || defined(_CPPUNWIND)) && not defined(JSON_NOEXCEPTION)
#if (defined(__cpp_exceptions) || defined(_CPPUNWIND)) && not defined(JSON_NOEXCEPTION)
#define JSON_THROW(exception) throw exception
#define JSON_TRY try
#define JSON_CATCH(exception) catch(exception)
+1 -1
View File
@@ -82,7 +82,7 @@ SOFTWARE.
#endif
// allow to disable exceptions
#if (__cpp_exceptions || defined(_CPPUNWIND)) && not defined(JSON_NOEXCEPTION)
#if (defined(__cpp_exceptions) || defined(_CPPUNWIND)) && not defined(JSON_NOEXCEPTION)
#define JSON_THROW(exception) throw exception
#define JSON_TRY try
#define JSON_CATCH(exception) catch(exception)