1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

fix: remove abort() call from tr_assert_message() (#4696)

This commit is contained in:
Charles Kerr 2023-02-01 18:19:40 -06:00 committed by GitHub
parent e0cc4f50e0
commit 0493542f62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,8 +5,6 @@
#import <Foundation/Foundation.h>
#include <cstdlib> // for abort()
#include <fmt/format.h>
#include "tr-assert.h"
@ -20,10 +18,6 @@
{
auto const full_text = fmt::format(FMT_STRING("assertion failed: {:s} ({:s}:{:d})"), message, file, line);
[NSException raise:NSInternalInconsistencyException format:@"%s", full_text.c_str()];
// We should not reach this anyway, but it helps mark the function as property noreturn
// (the Objective-C NSException method does not).
abort();
}
#endif