Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (23 sloc) 0.464 kb
#ifndef RBX_UNWIND_INFO_HPP
#define RBX_UNWIND_INFO_HPP
#include <stdint.h>
namespace rubinius {
// TODO figure out if this is a good number
const int kMaxUnwindInfos = 20;
enum UnwindType {
cRescue = 0,
cEnsure = 1
};
struct UnwindInfo {
uint32_t target_ip;
int stack_depth;
UnwindType type;
bool for_ensure() {
return type == cEnsure;
}
bool for_rescue() {
return type == cRescue;
}
};
}
#endif
Jump to Line
Something went wrong with that request. Please try again.