mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-10 15:03:34 +00:00
yes
This commit is contained in:
16
Tests/main.c
16
Tests/main.c
@@ -41,14 +41,7 @@
|
||||
#include <windows.h>
|
||||
#include <dbghelp.h>
|
||||
|
||||
LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS* ExceptionInfo)
|
||||
{
|
||||
fprintf(stderr, "Exception occurred!\n");
|
||||
FollowStackTrace();
|
||||
return EXCEPTION_EXECUTE_HANDLER;
|
||||
}
|
||||
|
||||
void FollowStackTrace()
|
||||
void PulseFollowStackTrace()
|
||||
{
|
||||
HANDLE process = GetCurrentProcess();
|
||||
SymInitialize(process, NULL, TRUE);
|
||||
@@ -83,6 +76,13 @@
|
||||
}
|
||||
free(symbol);
|
||||
}
|
||||
|
||||
LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS* ExceptionInfo)
|
||||
{
|
||||
fprintf(stderr, "Exception occurred!\n");
|
||||
PulseFollowStackTrace();
|
||||
return EXCEPTION_EXECUTE_HANDLER;
|
||||
}
|
||||
#endif
|
||||
|
||||
extern void TestBackend();
|
||||
|
||||
Reference in New Issue
Block a user