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:06 -05:00

14 lines
No EOL
245 B
C++

#include "rr.h"
namespace rr {
void V8::Init() {
ClassBuilder("V8").
defineSingletonMethod("IdleNotification", &V8::IdleNotification);
}
VALUE V8::IdleNotification(VALUE self) {
return v8::V8::IdleNotification() ? Qtrue : Qfalse;
}
}