Changeset 4529c4b 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:
f25d4a4
Parents:
8921188
git-author:
Dzejrou <dzejrou@…> (2018-05-11 00:10:43)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:23)
Message:

cpp: actual catch bodies are not executed now because of some problems they caused (possibly temporarily)

File:
1 edited

Legend:

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

    r8921188 r4529c4b  
    6161        extern bool exception_thrown;
    6262
    63         /**
    64          * These two variables can be used to suppress
    65          * the execution of eithe the try blocks
    66          * or the catch blocks.
    67          */
    6863        inline constexpr bool try_blocks_allowed{true};
    69         inline constexpr bool catch_blocks_allowed{false};
    7064    }
    7165}
     
    9286#define LIBCPP_EXCEPTION_IGNORE       /* IGNORE */
    9387#define LIBCPP_EXCEPTION_HANDLE_THROW LIBCPP_EXCEPTION_IGNORE
    94 #define LIBCPP_EXCEPTION_HANDLE_CATCH LIBCPP_EXCEPTION_IGNORE
     88#define LIBCPP_EXCEPTION_HANDLE_CATCH LIBCPP_EXCEPTION_HANG
    9589
    9690#define try if constexpr (::std::aux::try_blocks_allowed)
     
    107101    { \
    108102        printf("[EXCEPTION] Caught < "#expr" > at %s:%d\n", __FILE__, __LINE__); \
     103        ::std::aux::exception_thrown = false; \
    109104        LIBCPP_EXCEPTION_HANDLE_CATCH \
    110105    } \
    111     if constexpr (::std::aux::catch_blocks_allowed)
     106    if constexpr (false)
    112107
    113108/**
Note: See TracChangeset for help on using the changeset viewer.