Changeset 5df0491 in mainline


Ignore:
Timestamp:
2018-07-05T21:41:23Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
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)
Message:

cpp: removed features that proved not to work :/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/internal/trycatch.hpp

    r5735b111 r5df0491  
    9696#define try if constexpr (::std::aux::try_blocks_allowed)
    9797
    98 /**
    99  * Since we cannot use the thrown object in this macro,
    100  * we have to silence compiler warnings on it by
    101  * using (void)thrown-object.
    102  */
    10398#define throw \
    10499    do {\
     
    106101        printf("[EXCEPTION] Thrown at %s:%d\n", __FILE__, __LINE__); \
    107102        LIBCPP_EXCEPTION_HANDLE_THROW \
    108     } while (false); (void)
     103    } while (false);
    109104
    110105#define catch(expr) \
     
    114109        LIBCPP_EXCEPTION_HANDLE_CATCH \
    115110    } \
    116     if constexpr (expr = {}; ::std::aux::catch_blocks_allowed)
     111    if constexpr (::std::aux::catch_blocks_allowed)
    117112
    118113/**
Note: See TracChangeset for help on using the changeset viewer.