mirror of
https://github.com/monero-project/monero.git
synced 2025-02-13 17:01:24 -05:00
Merge pull request #9739
70e441293 wallet: mark wallet error throwing functions as noreturn (jeffro256)
This commit is contained in:
commit
a92bd63822
@ -993,7 +993,7 @@ namespace tools
|
|||||||
#if !defined(_MSC_VER)
|
#if !defined(_MSC_VER)
|
||||||
|
|
||||||
template<typename TException, typename... TArgs>
|
template<typename TException, typename... TArgs>
|
||||||
void throw_wallet_ex(std::string&& loc, const TArgs&... args)
|
[[noreturn]] void throw_wallet_ex(std::string&& loc, const TArgs&... args)
|
||||||
{
|
{
|
||||||
TException e(std::move(loc), args...);
|
TException e(std::move(loc), args...);
|
||||||
LOG_PRINT_L0(e.to_string());
|
LOG_PRINT_L0(e.to_string());
|
||||||
@ -1006,7 +1006,7 @@ namespace tools
|
|||||||
#include <boost/preprocessor/repetition/repeat_from_to.hpp>
|
#include <boost/preprocessor/repetition/repeat_from_to.hpp>
|
||||||
|
|
||||||
template<typename TException>
|
template<typename TException>
|
||||||
void throw_wallet_ex(std::string&& loc)
|
[[noreturn]] void throw_wallet_ex(std::string&& loc)
|
||||||
{
|
{
|
||||||
TException e(std::move(loc));
|
TException e(std::move(loc));
|
||||||
LOG_PRINT_L0(e.to_string());
|
LOG_PRINT_L0(e.to_string());
|
||||||
@ -1015,7 +1015,7 @@ namespace tools
|
|||||||
|
|
||||||
#define GEN_throw_wallet_ex(z, n, data) \
|
#define GEN_throw_wallet_ex(z, n, data) \
|
||||||
template<typename TException, BOOST_PP_ENUM_PARAMS(n, typename TArg)> \
|
template<typename TException, BOOST_PP_ENUM_PARAMS(n, typename TArg)> \
|
||||||
void throw_wallet_ex(std::string&& loc, BOOST_PP_ENUM_BINARY_PARAMS(n, const TArg, &arg)) \
|
[[noreturn]] void throw_wallet_ex(std::string&& loc, BOOST_PP_ENUM_BINARY_PARAMS(n, const TArg, &arg)) \
|
||||||
{ \
|
{ \
|
||||||
TException e(std::move(loc), BOOST_PP_ENUM_PARAMS(n, arg)); \
|
TException e(std::move(loc), BOOST_PP_ENUM_PARAMS(n, arg)); \
|
||||||
LOG_PRINT_L0(e.to_string()); \
|
LOG_PRINT_L0(e.to_string()); \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user