Skip to content

Commit

Permalink
Merge pull request #281 from laramiel/patch-3
Browse files Browse the repository at this point in the history
Preprocessor fixes for xtl_config.hpp
  • Loading branch information
JohanMabille authored Jan 10, 2024
2 parents 407954e + 2ebf99f commit 7449116
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/xtl/xtl_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,16 @@
#if (defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND)) && !defined(XTL_NO_EXCEPTIONS)
// Exceptions are enabled.
#else
#if !defined(XTL_NO_EXCEPTIONS)
// Exceptions are disabled.
#define XTL_NO_EXCEPTIONS
#endif
#endif

#if defined(XTL_NO_EXCEPTIONS)

#include <iostream>

#define XTL_THROW(_, msg) \
{ \
std::cerr << msg << std::endl; \
Expand Down

0 comments on commit 7449116

Please sign in to comment.