Skip to content

Instantly share code, notes, and snippets.

View hackpascal's full-sized avatar

Weijie Gao hackpascal

View GitHub Profile
@hackpascal
hackpascal / seh.cc
Created July 10, 2017 12:40 — forked from kikairoya/seh.cc
SEH for gcc (working)
#include <stdio.h>
#include <windows.h>
#include <excpt.h>
#include <functional>
#pragma GCC optimize ("no-omit-frame-pointer")
//#define SEH_NO_CALL_DESTRUCTORS
#define SEH_ENABLE_TRACE