minidump integration

This commit is contained in:
Ondrej Novak 2025-05-13 12:07:29 +02:00
parent 96eaeb4851
commit b459f2010e
9 changed files with 130 additions and 21 deletions

10
platform/seh.h Normal file
View file

@ -0,0 +1,10 @@
#ifdef _WIN32
#include "windows/minidump.h"
#define SEH_MONITOR_BEGIN __try
#define SEH_MONITOR_END __except(GenerateMinidumpAndExit(GetExceptionInformation())) {}
#else
#define SEH_TRY
#define SEH_CATCH
#endif