chromium/third_party/libc++abi/src/src/cxa_handlers.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
//
//
// This file implements the functionality associated with the terminate_handler,
// unexpected_handler, and new_handler.
//===----------------------------------------------------------------------===//

#include <stdexcept>
#include <new>
#include <exception>
#include "abort_message.h"
#include "cxxabi.h"
#include "cxa_handlers.h"
#include "cxa_exception.h"
#include "private_typeinfo.h"
#include "include/atomic_support.h" // from libc++

namespace std
{

unexpected_handler
get_unexpected() noexcept
{}

void
__unexpected(unexpected_handler func)
{}

__attribute__((noreturn))
void
unexpected()
{}

terminate_handler
get_terminate() noexcept
{}

void
__terminate(terminate_handler func) noexcept
{}

__attribute__((noreturn))
void
terminate() noexcept
{}

new_handler
get_new_handler() noexcept
{}

}  // std