From 8ebbe6fb4e7583e6faaf0e74e6ee583fdc930835 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 9 Aug 2022 08:58:31 +0200 Subject: [PATCH] patterns: Fixed crash when preprocessor throws an error --- lib/external/pattern_language | 2 +- main/source/window/window.cpp | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/external/pattern_language b/lib/external/pattern_language index b31e19dc7..f1c58564f 160000 --- a/lib/external/pattern_language +++ b/lib/external/pattern_language @@ -1 +1 @@ -Subproject commit b31e19dc7a55c824573f5e8c9df986469681b5b2 +Subproject commit f1c58564f32b23e52a57ef2c1263223b3b773ddf diff --git a/main/source/window/window.cpp b/main/source/window/window.cpp index 8574e30f3..1e2aef7c8 100644 --- a/main/source/window/window.cpp +++ b/main/source/window/window.cpp @@ -74,7 +74,11 @@ namespace hex { // Let's not loop on this... std::signal(signalNumber, nullptr); - std::raise(signalNumber); + #if defined(DEBUG) + assert(false); + #else + std::raise(signalNumber); + #endif }; Window::Window() {