File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 43
43
#endif
44
44
45
45
// ! Determine the mode of error handling
46
- #if defined(__cpp_exceptions) && !defined(TINY_UTF8_NOEXCEPT) && !defined(TINY_UTF8_THROW)
47
- #include < stdexcept> // for std::out_of_range
48
- #define TINY_UTF8_THROW ( LOCATION , FAILING_PREDICATE ) throw std::out_of_range ( LOCATION " : " #FAILING_PREDICATE )
49
- #else
50
- #define TINY_UTF8_THROW ( ... ) void ()
46
+ #ifndef TINY_UTF8_THROW
47
+ #if defined(__cpp_exceptions) && !defined(TINY_UTF8_NOEXCEPT)
48
+ #include < stdexcept> // for std::out_of_range
49
+ #define TINY_UTF8_THROW ( LOCATION , FAILING_PREDICATE ) throw std::out_of_range ( LOCATION " : " #FAILING_PREDICATE )
50
+ #else
51
+ #define TINY_UTF8_THROW ( ... ) void ()
52
+ #endif
51
53
#endif
52
54
53
55
// ! Remove -Wmaybe-uninitialized, since it is wrong for all cases in this file
You can’t perform that action at this time.
0 commit comments