Changeset 9fe2fd7 in mainline for uspace/lib/cpp/include/__bits/trycatch.hpp
- Timestamp:
- 2019-07-24T11:44:40Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a448937, f42ee6f
- Parents:
- 9fb280c (diff), 8c0b781 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Jaroslav Jindrak <Dzejrou@…> (2019-07-24 11:44:40)
- git-committer:
- GitHub <noreply@…> (2019-07-24 11:44:40)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/__bits/trycatch.hpp
r9fb280c r9fe2fd7 67 67 68 68 /** 69 * The language allows us to odr-use a variable 70 * that is not defined. We use this to support 71 * macros redefining the catch keyword that are 72 * followed by a block that uses that symbol. 73 * 74 * Normally, that would produce a compiler error 75 * as the declaration of that variale would be removed 76 * with the catch statement, but if we use the following 77 * declaration's name as the name of the caught exception, 78 * all will work well because of this extern declaration. 79 * 80 * Note: We do not follow our usual convention of using 81 * the aux:: namespace because that cannot be used in 82 * variable declaration. 83 */ 84 extern int __exception; 85 86 /** 69 87 * These macros allow us to choose how the program 70 88 * should behave when an exception is thrown … … 87 105 #define LIBCPP_EXCEPTION_IGNORE /* IGNORE */ 88 106 #define LIBCPP_EXCEPTION_HANDLE_THROW LIBCPP_EXCEPTION_IGNORE 89 #define LIBCPP_EXCEPTION_HANDLE_CATCH LIBCPP_EXCEPTION_ HANG107 #define LIBCPP_EXCEPTION_HANDLE_CATCH LIBCPP_EXCEPTION_ABORT 90 108 91 109 #define try if constexpr (::std::aux::try_blocks_allowed)
Note:
See TracChangeset
for help on using the changeset viewer.