2011-09-15 14:52:50 -05:00
|
|
|
// Unwinding stuff missing on some architectures (Mac OS X).
|
|
|
|
|
|
|
|
#ifndef RUST_UNWIND_H
|
|
|
|
#define RUST_UNWIND_H
|
|
|
|
|
|
|
|
#ifdef __APPLE__
|
|
|
|
#include <libunwind.h>
|
|
|
|
|
|
|
|
typedef void _Unwind_Context;
|
|
|
|
typedef int _Unwind_Reason_Code;
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#include <unwind.h>
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2012-01-09 01:28:18 -06:00
|
|
|
#if (defined __APPLE__) || (defined __clang__)
|
|
|
|
|
|
|
|
typedef int _Unwind_Action;
|
|
|
|
typedef void _Unwind_Exception;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2011-09-15 14:52:50 -05:00
|
|
|
#endif
|
|
|
|
|