From 91c2b3e6fcad6e3c1d4bb54463717a1bc656c1a0 Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Sat, 21 Dec 2024 10:11:21 +0800 Subject: [PATCH] Hidden segmentation fault catch mechanism on Windows. --- include/n8/core/Runtime.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/n8/core/Runtime.hpp b/include/n8/core/Runtime.hpp index f34e30e..42b2931 100644 --- a/include/n8/core/Runtime.hpp +++ b/include/n8/core/Runtime.hpp @@ -44,12 +44,14 @@ class Runtime final { static void cleanUp(); + #if defined(__linux__) || defined(__APPLE__) static void catchSegfault(); static void segfaultHandler( int signal, siginfo_t *si, void *arg ); + #endif #ifndef __EMSCRIPTEN__