1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/v8_ref.cpp
2009-12-10 02:40:31 +02:00

22 lines
351 B
C++

#include <v8_ref.h>
#include "stdio.h"
using namespace v8;
v8_ref::v8_ref(Handle<void> object) : handle(Persistent<void>::New(object)) {
printf("Allocating v8 reference\n");
}
v8_ref::~v8_ref() {
printf("Disposing v8 reference\n");
handle.Dispose();
}
void v8_ref_mark(v8_ref* ref) {
}
void v8_ref_free(v8_ref* ref) {
delete ref;
}