OGL Engine 1.2.0-dev
Loading...
Searching...
No Matches
stacktrace.hpp
Go to the documentation of this file.
1
5#pragma once
6
7#include <windows.h>
8#include <dbghelp.h>
9#include <iostream>
10#include <string>
11
12#pragma comment(lib, "dbghelp.lib")
13
14namespace Engine::Core {
20 void PrintStackTrace(CONTEXT *context, std::ostream& out = std::cout);
21
28 LONG WINAPI UnhandledExceptionHandler(EXCEPTION_POINTERS* exceptionInfo);
29
36 std::string ExceptionCodeString(DWORD code);
37
42 void EnableStacktrace();
43}
Definition event.cpp:3
LONG WINAPI UnhandledExceptionHandler(EXCEPTION_POINTERS *exceptionInfo)
Gère les exceptions en fonction de leur type.
Definition stacktrace.cpp:68
void PrintStackTrace(CONTEXT *context, std::ostream &out)
Affiche la stacktrace dans la console.
Definition stacktrace.cpp:5
std::string ExceptionCodeString(DWORD code)
Renvoie une string associée au code d'exception donné. CF. La doc de Microsoft sur les exceptions C++...
Definition stacktrace.cpp:76
void EnableStacktrace()
Fonction qui active le Handler dans le programme actuel pour activer la stacktrace.
Definition stacktrace.cpp:102