mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
CrashCatch test
This commit is contained in:
parent
ad1ba70fdd
commit
1e8004981f
1 changed files with 11 additions and 0 deletions
|
@ -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 <mmsystem.h>
|
||||
//#include <shellapi.h>
|
||||
//#include <Objbase.h>
|
||||
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue