Changeset 4529c4b in mainline
- Timestamp:
- 2018-07-05T21:41:23Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f25d4a4
- Parents:
- 8921188
- git-author:
- Dzejrou <dzejrou@…> (2018-05-11 00:10:43)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/internal/trycatch.hpp
r8921188 r4529c4b 61 61 extern bool exception_thrown; 62 62 63 /**64 * These two variables can be used to suppress65 * the execution of eithe the try blocks66 * or the catch blocks.67 */68 63 inline constexpr bool try_blocks_allowed{true}; 69 inline constexpr bool catch_blocks_allowed{false};70 64 } 71 65 } … … 92 86 #define LIBCPP_EXCEPTION_IGNORE /* IGNORE */ 93 87 #define LIBCPP_EXCEPTION_HANDLE_THROW LIBCPP_EXCEPTION_IGNORE 94 #define LIBCPP_EXCEPTION_HANDLE_CATCH LIBCPP_EXCEPTION_ IGNORE88 #define LIBCPP_EXCEPTION_HANDLE_CATCH LIBCPP_EXCEPTION_HANG 95 89 96 90 #define try if constexpr (::std::aux::try_blocks_allowed) … … 107 101 { \ 108 102 printf("[EXCEPTION] Caught < "#expr" > at %s:%d\n", __FILE__, __LINE__); \ 103 ::std::aux::exception_thrown = false; \ 109 104 LIBCPP_EXCEPTION_HANDLE_CATCH \ 110 105 } \ 111 if constexpr ( ::std::aux::catch_blocks_allowed)106 if constexpr (false) 112 107 113 108 /**
Note:
See TracChangeset
for help on using the changeset viewer.