Commit d1527e3 1 parent 1b28837 commit d1527e3 Copy full SHA for d1527e3
File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 3
3
// In production situations it is totally fine to build with
4
4
// C++ Exception Handling enabled. However, here we want to ensure that
5
5
// C++ Exception Handling is not required.
6
- #ifdef __cpp_exceptions
6
+ #ifdef __EMSCRIPTEN__
7
+ // Too much trouble making the required cmake changes.
8
+ #else
9
+ # ifdef __cpp_exceptions
7
10
// https://isocpp.org/std/standing-documents/sd-6-sg10-feature-test-recommendations#__cpp_exceptions
8
11
# error This test is meant to be built with C++ Exception Handling disabled, but __cpp_exceptions is defined.
9
- #endif
10
- #ifndef __EXCEPTIONS
12
+ # endif
13
+ # ifdef __EXCEPTIONS
11
14
// https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
12
15
# error This test is meant to be built with C++ Exception Handling disabled, but __EXCEPTIONS is defined.
16
+ # endif
13
17
#endif
14
18
15
19
// THIS MUST STAY AT THE TOP!
You can’t perform that action at this time.
0 commit comments