1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

comment out gcc only debug stuff.

This commit is contained in:
Charles Lowell 2011-09-02 02:21:32 -05:00
parent b0cefd593e
commit 3948056c5f

View file

@ -1,8 +1,8 @@
#include "v8_exception.h"
#include "rr.h"
#include "v8_handle.h"
#include "execinfo.h"
#include "signal.h"
// #include "execinfo.h"
// #include "signal.h"
using namespace v8;
namespace {
@ -10,14 +10,14 @@ namespace {
static void* stack[20];
void fatal(const char* location, const char* message) {
rb_raise(rb_eFatal, "%s: %s", location, message);
}
void segfault(int sig) {
fprintf(stderr, "segfault: game over.\n");
int size = backtrace(stack, 20);
backtrace_symbols_fd(stack, size, 2);
exit(1);
rb_raise(rb_eFatal, "%s: %s", location, message);
}
// void segfault(int sig) {
// fprintf(stderr, "segfault: game over.\n");
// int size = backtrace(stack, 20);
// backtrace_symbols_fd(stack, size, 2);
// exit(1);
// }
VALUE _ThrowException(VALUE rbmod, VALUE value) {
HandleScope scope;
Handle<Value> err = rr_rb2v8(value);