Changeset 9396c52 in mainline


Ignore:
Timestamp:
2018-07-05T21:41:20Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c4049e6
Parents:
7d0f2eb
git-author:
Dzejrou <dzejrou@…> (2018-03-15 10:37:55)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:20)
Message:

cpp: added std::terminate

Location:
uspace/lib/cpp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/impl/exception.hpp

    r7d0f2eb r9396c52  
    3232namespace std
    3333{
     34    [[noreturn]] void terminate() noexcept;
    3435
    35 class exception
    36 {
    37         public:
    38                 exception() = default;
    39                 exception(const exception&) = default;
    40                 exception& operator=(const exception&) noexcept;
    41                 virtual const char* what() const;
    42                 virtual ~exception() = default;
    43 };
    44 
     36    class exception
     37    {
     38        public:
     39            exception() = default;
     40            exception(const exception&) = default;
     41            exception& operator=(const exception&) noexcept;
     42            virtual const char* what() const;
     43            virtual ~exception() = default;
     44    };
    4545}
    4646
  • uspace/lib/cpp/src/exception.cpp

    r7d0f2eb r9396c52  
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
     28
     29#include <cstdlib>
    2830#include <exception>
    2931
    3032namespace std
    3133{
     34    [[noreturn]] void terminate() noexcept
     35    {
     36        abort();
     37    }
     38
    3239    const char* exception::what() const
    3340    {
Note: See TracChangeset for help on using the changeset viewer.