mirror of
https://github.com/transmission/transmission
synced 2024-12-22 07:42:37 +00:00
eeea3c540f
* fix: readability-redundant-casting warnings in libtransmission * fix: readability-avoid-return-with-void-value warnings in libtransmission * fix: readability-redundant-member-init warnings in libtransmission * fix: readability-redundant-inline-specifier warnings in libtransmission * fix: performance-avoid-endl warnings in libtransmission * fix: bugprone-multi-level-implicit-pointer-conversion warnings in libtransmission * fix: bugprone-switch-missing-default-case warnings in libtransmission * fix: readability-redundant-string-cstr warnings in libtransmission * fixup! fix: bugprone-multi-level-implicit-pointer-conversion warnings in libtransmission
19 lines
576 B
C++
19 lines
576 B
C++
// This file Copyright © Mnemosyne LLC.
|
|
// It may be used under GPLv2 (SPDX: GPL-2.0-only), GPLv3 (SPDX: GPL-3.0-only),
|
|
// or any future license endorsed by Mnemosyne LLC.
|
|
// License text can be found in the licenses/ folder.
|
|
|
|
#if !defined(NDEBUG) || defined(TR_FORCE_ASSERTIONS)
|
|
|
|
#include <iostream>
|
|
#include <string_view>
|
|
|
|
#include "libtransmission/tr-assert.h"
|
|
|
|
[[noreturn]] bool tr_assert_report(std::string_view file, long line, std::string_view message)
|
|
{
|
|
std::cerr << "assertion failed: " << message << " (" << file << ':' << line << ")\n";
|
|
abort();
|
|
}
|
|
|
|
#endif
|