Path: blob/main/system/lib/libcxxabi/src/stdlib_stdexcept.cpp
6173 views
//===----------------------------------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "stdexcept"9#include "new"10#include <cstdlib>11#include <cstring>12#include <cstdint>13#include <cstddef>14#include "include/refstring.h" // from libc++1516static_assert(sizeof(std::__libcpp_refstring) == sizeof(const char *), "");1718namespace std // purposefully not using versioning namespace19{2021logic_error::~logic_error() noexcept {}2223const char*24logic_error::what() const noexcept25{26return __imp_.c_str();27}2829runtime_error::~runtime_error() noexcept {}3031const char*32runtime_error::what() const noexcept33{34return __imp_.c_str();35}3637domain_error::~domain_error() noexcept {}38invalid_argument::~invalid_argument() noexcept {}39length_error::~length_error() noexcept {}40out_of_range::~out_of_range() noexcept {}4142range_error::~range_error() noexcept {}43overflow_error::~overflow_error() noexcept {}44underflow_error::~underflow_error() noexcept {}4546} // std474849