Changeset 5df0491 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:
- be1be2c7
- Parents:
- 5735b111
- git-author:
- Dzejrou <dzejrou@…> (2018-05-09 20:17:16)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/internal/trycatch.hpp
r5735b111 r5df0491 96 96 #define try if constexpr (::std::aux::try_blocks_allowed) 97 97 98 /**99 * Since we cannot use the thrown object in this macro,100 * we have to silence compiler warnings on it by101 * using (void)thrown-object.102 */103 98 #define throw \ 104 99 do {\ … … 106 101 printf("[EXCEPTION] Thrown at %s:%d\n", __FILE__, __LINE__); \ 107 102 LIBCPP_EXCEPTION_HANDLE_THROW \ 108 } while (false); (void)103 } while (false); 109 104 110 105 #define catch(expr) \ … … 114 109 LIBCPP_EXCEPTION_HANDLE_CATCH \ 115 110 } \ 116 if constexpr ( expr = {};::std::aux::catch_blocks_allowed)111 if constexpr (::std::aux::catch_blocks_allowed) 117 112 118 113 /**
Note:
See TracChangeset
for help on using the changeset viewer.