mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-07 01:00:06 +01:00
Fix formatting
This commit is contained in:
parent
c20eefdd26
commit
c2e47df91f
|
|
@ -178,7 +178,9 @@ public:
|
|||
return m_chunks[chunk].get(index);
|
||||
}
|
||||
|
||||
bool destroy(IdT id) requires requires(T t) { t.destroy(); } {
|
||||
bool destroy(IdT id)
|
||||
requires requires(T t) { t.destroy(); }
|
||||
{
|
||||
const auto rawId = static_cast<std::size_t>(id) - MinId;
|
||||
|
||||
if (rawId >= MaxId - MinId) {
|
||||
|
|
@ -221,9 +223,7 @@ public:
|
|||
return true;
|
||||
}
|
||||
|
||||
[[deprecated("use close()")]] bool remove(IdT id) {
|
||||
return close(id);
|
||||
}
|
||||
[[deprecated("use close()")]] bool remove(IdT id) { return close(id); }
|
||||
};
|
||||
|
||||
template <typename T, typename IdT = int, std::size_t MaxId = 4096,
|
||||
|
|
|
|||
|
|
@ -52,14 +52,14 @@ handle_signal(int sig, siginfo_t *info, void *ucontext) {
|
|||
|
||||
if (std::size_t printed =
|
||||
rx::printAddressLocation(buf, sizeof(buf), rx::thread::g_current,
|
||||
(std::uint64_t)info->si_addr)) {
|
||||
(std::uint64_t)info->si_addr)) {
|
||||
printed += std::snprintf(buf + printed, sizeof(buf) - printed, "\n");
|
||||
write(2, buf, printed);
|
||||
}
|
||||
|
||||
if (rx::thread::g_current) {
|
||||
rx::printStackTrace(reinterpret_cast<ucontext_t *>(ucontext),
|
||||
rx::thread::g_current, 2);
|
||||
rx::thread::g_current, 2);
|
||||
} else {
|
||||
rx::printStackTrace(reinterpret_cast<ucontext_t *>(ucontext), 2);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue