mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-15 11:36:00 -05:00
![Ben Woosley](/assets/img/avatar_default.png)
This is a minimal extraction of a single function, but also the only use of std::exception in util/system. The background of this commit is an ongoing effort to decouple the libbitcoinkernel library from the ArgsManager defined in system.h. Moving the function out of system.h allows including it from a separate source file without including the ArgsManager definitions from system.h.
14 lines
473 B
C++
14 lines
473 B
C++
// Copyright (c) 2009-2010 Satoshi Nakamoto
|
|
// Copyright (c) 2009-2023 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef BITCOIN_UTIL_EXCEPTION_H
|
|
#define BITCOIN_UTIL_EXCEPTION_H
|
|
|
|
#include <exception>
|
|
#include <string_view>
|
|
|
|
void PrintExceptionContinue(const std::exception* pex, std::string_view thread_name);
|
|
|
|
#endif // BITCOIN_UTIL_EXCEPTION_H
|