waneck / haxe-genc

20 stars 2 forks source link

Stack traces #21

Open waneck opened 11 years ago

waneck commented 11 years ago

Seems like we can support stack traces through http://www.nongnu.org/libunwind See http://www.raylikestocode.com/2011/09/unwind-programs-stack.html

It's got a nice license, and seems pretty self-contained. Also setjmp seems to be pratically free, at the cost of a heavier longjmp (because of stack unwinding), which leaves me thinking if it should only be used in debug mode or not.

Simn commented 11 years ago

From what I read libunwind does not support Windows.

waneck commented 11 years ago

There's a Windows API for walking stacks: http://msdn.microsoft.com/en-us/library/windows/desktop/ms680650(v=vs.85).aspx