Skip to content

Instantly share code, notes, and snippets.

Camil Staps camilstaps

Block or report user

Report or block camilstaps

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jvranish / stack_traces.c
Last active Nov 21, 2019
An example of catching exceptions and printing stack traces in C on Windows, Linux and OS X
View stack_traces.c
/* compile with:
on linux: gcc -g stack_traces.c
on OS X: gcc -g -fno-pie stack_traces.c
on windows: gcc -g stack_traces.c -limagehlp
#include <signal.h>
#include <stdio.h>
#include <assert.h>
You can’t perform that action at this time.