1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/ext/v8/v8.cc
2012-05-09 14:46:05 -05:00

13 lines
No EOL
284 B
C++

#include "rr.h"
namespace rr {
namespace {
VALUE IdleNotification(VALUE self) {
return v8::V8::IdleNotification() ? Qtrue : Qfalse;
}
}
void V8::Init() {
VALUE V8Class = defineClass("V8");
RR_DEFINE_SINGLETON_METHOD(V8Class, "IdleNotification", &IdleNotification, 0);
}
}