Skip to content

Commit

Permalink
Hidden segmentation fault catch mechanism on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Dec 21, 2024
1 parent 5d211b6 commit 91c2b3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/n8/core/Runtime.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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__

Expand Down

0 comments on commit 91c2b3e

Please sign in to comment.