Changeset View
Changeset View
Standalone View
Standalone View
contrib/libcxxabi/src/stdlib_exception.cpp
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
//===---------------------------- exception.cpp ---------------------------===// | |||||
// | |||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | |||||
// See https://llvm.org/LICENSE.txt for license information. | |||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |||||
// | |||||
//===----------------------------------------------------------------------===// | |||||
#define _LIBCPP_BUILDING_LIBRARY | |||||
#include <new> | |||||
#include <exception> | |||||
namespace std | |||||
{ | |||||
// exception | |||||
exception::~exception() _NOEXCEPT | |||||
{ | |||||
} | |||||
const char* exception::what() const _NOEXCEPT | |||||
{ | |||||
return "std::exception"; | |||||
} | |||||
// bad_exception | |||||
bad_exception::~bad_exception() _NOEXCEPT | |||||
{ | |||||
} | |||||
const char* bad_exception::what() const _NOEXCEPT | |||||
{ | |||||
return "std::bad_exception"; | |||||
} | |||||
// bad_alloc | |||||
bad_alloc::bad_alloc() _NOEXCEPT | |||||
{ | |||||
} | |||||
bad_alloc::~bad_alloc() _NOEXCEPT | |||||
{ | |||||
} | |||||
const char* | |||||
bad_alloc::what() const _NOEXCEPT | |||||
{ | |||||
return "std::bad_alloc"; | |||||
} | |||||
// bad_array_new_length | |||||
bad_array_new_length::bad_array_new_length() _NOEXCEPT | |||||
{ | |||||
} | |||||
bad_array_new_length::~bad_array_new_length() _NOEXCEPT | |||||
{ | |||||
} | |||||
const char* | |||||
bad_array_new_length::what() const _NOEXCEPT | |||||
{ | |||||
return "bad_array_new_length"; | |||||
} | |||||
} // std |