From 1e8004981f8f5b092bc2e0a488a137dfefaa1232 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Thu, 26 Sep 2019 08:25:15 -0700 Subject: [PATCH] CrashCatch test --- BeefBoot/BeefBoot.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/BeefBoot/BeefBoot.cpp b/BeefBoot/BeefBoot.cpp index f4d50544..e9ac58c7 100644 --- a/BeefBoot/BeefBoot.cpp +++ b/BeefBoot/BeefBoot.cpp @@ -13,6 +13,11 @@ #include "BeefySysLib/util/HashSet.h" #include "BeefySysLib/util/MultiHashSet.h" +//#define TEST_CRASH +#ifdef TEST_CRASH +#include "CrashCatcher.h" +#endif + //#include //#include //#include @@ -28,6 +33,12 @@ BF_IMPORT void BF_CALLTYPE Debugger_ProgramDone(); int main(int argc, char* argv[]) { +#ifdef TEST_CRASH + CrashCatcher catcher; + catcher.SetCrashReportKind(BfpCrashReportKind_GUI); + catcher.Test(); +#endif + BfpSystem_SetCommandLine(argc, argv); BfpThread_SetName(NULL, "MainThread", NULL);