summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-08-24 10:06:18 +0200
committerLioncash <mathew1800@gmail.com>2020-08-24 10:15:10 +0200
commit3bfaabdbdd9e7e74f09c209ad239c5087f702ec0 (patch)
tree5209f50b858bd6a504f4fe2c827c803c2a7d1218 /src/common
parentMerge pull request #4573 from lioncash/label (diff)
downloadyuzu-3bfaabdbdd9e7e74f09c209ad239c5087f702ec0.tar
yuzu-3bfaabdbdd9e7e74f09c209ad239c5087f702ec0.tar.gz
yuzu-3bfaabdbdd9e7e74f09c209ad239c5087f702ec0.tar.bz2
yuzu-3bfaabdbdd9e7e74f09c209ad239c5087f702ec0.tar.lz
yuzu-3bfaabdbdd9e7e74f09c209ad239c5087f702ec0.tar.xz
yuzu-3bfaabdbdd9e7e74f09c209ad239c5087f702ec0.tar.zst
yuzu-3bfaabdbdd9e7e74f09c209ad239c5087f702ec0.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/assert.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/common/assert.h b/src/common/assert.h
index 5b67c5c52..06d7b5612 100644
--- a/src/common/assert.h
+++ b/src/common/assert.h
@@ -17,11 +17,12 @@
// enough for our purposes.
template <typename Fn>
#if defined(_MSC_VER)
-__declspec(noinline, noreturn)
+[[msvc::noinline, noreturn]]
#elif defined(__GNUC__)
- __attribute__((noinline, noreturn, cold))
+[[gnu::cold, gnu::noinline, noreturn]]
#endif
- static void assert_noinline_call(const Fn& fn) {
+static void
+assert_noinline_call(const Fn& fn) {
fn();
Crash();
exit(1); // Keeps GCC's mouth shut about this actually returning