From 9be819faaf8c1e6882c4ede339f4216d7ea72059 Mon Sep 17 00:00:00 2001 From: Markus Wick Date: Fri, 2 Apr 2021 08:43:26 +0200 Subject: common: Move assert failure handling into a cpp file. Advantage: Altering the handler does not need a full recompilation. Disadvantage: noreturn is droped, so the caller is a bit slower. We quite often run yuzu with a YOLO assertion handler. In fact, only very few games run at all with asserts. This patch allows developers to patch the handler without recompiling everything. The overhead of the missing "noreturn" attribute shoul be negletable. --- src/common/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/common/CMakeLists.txt') diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 788516ded..66931ac97 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -97,6 +97,7 @@ add_custom_command(OUTPUT scm_rev.cpp add_library(common STATIC algorithm.h alignment.h + assert.cpp assert.h atomic_ops.h detached_tasks.cpp -- cgit v1.2.3