Ignore:
Timestamp:
2019-07-24T11:44:40Z (5 years ago)
Author:
GitHub <noreply@…>
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)
Message:

Merge pull request #171 from Dzejrou/hackweek

C++ stdlib: <future>

File:
1 edited

Legend:

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

    r9fb280c r9fe2fd7  
    6767
    6868/**
     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 */
     84extern int __exception;
     85
     86/**
    6987 * These macros allow us to choose how the program
    7088 * should behave when an exception is thrown
     
    87105#define LIBCPP_EXCEPTION_IGNORE       /* IGNORE */
    88106#define LIBCPP_EXCEPTION_HANDLE_THROW LIBCPP_EXCEPTION_IGNORE
    89 #define LIBCPP_EXCEPTION_HANDLE_CATCH LIBCPP_EXCEPTION_HANG
     107#define LIBCPP_EXCEPTION_HANDLE_CATCH LIBCPP_EXCEPTION_ABORT
    90108
    91109#define try if constexpr (::std::aux::try_blocks_allowed)
Note: See TracChangeset for help on using the changeset viewer.