1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/ext/v8/v8_debug.cpp
2011-03-15 09:04:37 -05:00

17 lines
421 B
C++

#include "rr.h"
#include "v8_debug.h"
#include "v8-debug.h"
using namespace v8;
namespace {
VALUE EnableAgent(VALUE self, VALUE application_name, VALUE port) {
return rr_v82rb(v8::Debug::EnableAgent(RSTRING_PTR(application_name), NUM2INT(port), false));
}
}
void rr_init_v8_debug() {
VALUE DebugModule = rr_define_module("Debug");
rr_define_singleton_method(DebugModule, "EnableAgent", EnableAgent, 2);
}